Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpascurl.pas(625,24) Error: Identifier not found "sockaddr" #4

Open
Y-A-K-E opened this issue Dec 24, 2023 · 0 comments
Open

libpascurl.pas(625,24) Error: Identifier not found "sockaddr" #4

Y-A-K-E opened this issue Dec 24, 2023 · 0 comments

Comments

@Y-A-K-E
Copy link

Y-A-K-E commented Dec 24, 2023

IDE : lazarus 2.2.2 (FPC : 3.2.2)
OS : Win10

libpascurl.pas(625,24) Error: Identifier not found "sockaddr".

fix:

  curl_sockaddr = record
    family : Integer;
    socktype : Integer;
    protocol : Integer;
    addrlen : Cardinal;         { addrlen was a socklen_t type before 7.18.0 }
                                { but it turned really ugly and painful on the }
                                { systems that lack this type }
    addr : {$IFDEF FPC}{$IFDEF WINDOWS}TSockAddr{$ELSE}sockaddr{$ENDIF}
      {$ELSE IFDEF DCC32 OR IFDEF DCC64}Pointer{$ENDIF};
  end; 

but, HTTPS is not supported.

RemoteConnect.exe -a -e https://www.bing.com

(******************************************************************************)
(*                                 libPasCURL                                 *)
(*                 object pascal wrapper around cURL library                  *)
(*                        https://github.com/curl/curl                        *)
(*                                                                            *)
(* Copyright (c) 2019 - 2020                                Ivan Semenkov     *)
(* https://github.com/isemenkov/libpascurl                  [email protected] *)
(*                                                          Ukraine           *)
(******************************************************************************)
                                   Url: https://www.bing.com/
                        Redirect count: 0
                          Content type:
                          Content size: Unknown
                   Content buffer size: 0 B
                            Total time: 00:03:29.241000
                      Name lookup time: 00:00:07.322000
                          Connect time: 00:00:08.352000
         Time until the transfer start: 00:00:00.000000
                   Start transfer time: 00:00:00.000000
                          HTTP version: HTTP_UKNOWN
                         Response code: HTTP_STATUS_UNKNOWN
                           Header size: 0 B
                        Download speed: 0 B/s
                          Request size: 0 B
                        Request method: GET

-=== Content ===-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant