[fpc-pascal] FPCONNECT NOT WORKING?
epergola
epergola at hotmail.com
Fri Aug 21 04:31:47 CEST 2009
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
--
View this message in context: http://www.nabble.com/FPCONNECT-NOT-WORKING--tp25073238p25073238.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list