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

ncLins.pas - Compile Error on Android Platform #29

Open
HuichanKIM opened this issue Jul 1, 2024 · 0 comments
Open

ncLins.pas - Compile Error on Android Platform #29

HuichanKIM opened this issue Jul 1, 2024 · 0 comments

Comments

@HuichanKIM
Copy link

HuichanKIM commented Jul 1, 2024

Good Job. Thank you.

I have Modified two point on Delphi 12 Athens ...

  1. Need TypeCast ...
    function TncLine.GetReceiveTimeout: Integer;
    var
    Opt: DWord;
    OptSize: Integer;
    begin
    OptSize := SizeOf(Opt);
    {$IFDEF MSWINDOWS}
    Check(GetSockOpt(FHandle, SOL_SOCKET, SO_RCVTIMEO, PAnsiChar(@opt), OptSize));
    {$ELSE}
    Check(GetSockOpt(FHandle, SOL_SOCKET, SO_RCVTIMEO, Opt, socklen_t(OptSize))); <-- TypeCast by socklen_t
    {$ENDIF}
    Result := Opt;
    end;

  2. Need Escape Block ...
    {$IFDEF MSWINDOWS}
    procedure TConnectThread.ProcessEvent; <-- Escape from MSWINDOWS Block ...
    ...
    {$ENDIF}

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