[fpc-pascal] FPCONNECT NOT WORKING?

Rainer Stratmann RainerStratmann at t-online.de
Fri Aug 21 09:04:03 CEST 2009


more information
linux? windows?
blocking or nonblocking sockets?
Am Freitag, 21. August 2009 04:31 schrieb epergola:
> I am using lnet (non visual) with Lazarus,
> and in the connect process, lnet calls
> fpConnect(FHandle, psockaddr(@FAddress), SizeOf(FAddress));
> fpconnect is a FreePascal function (I could not step into it with F7).
> The problem is that whether it actually connects (passing correct address
> and correct port)
> or not (passing correct address but wrong port) it always returns -1.
> Why?
> What can I check to see if a connection is ACTUALLY established between the
> (Delphi)
> ServerSocket and the Lazarus Client socket? (My Delphi serversocket writes
> to a memo all
> messages received and sent, so i know that with the WRONG port nothing was
> sent nor
> received since when connected the memo show "Client Connected" and
> "Accepted").
> I saw a post dated 2008 asking about this error (bug?), but I saw no
> answer. Anybody can help?
> Thans



More information about the fpc-pascal mailing list