Peter H.M. Brooks
peter at new.co.za
Sun Aug 18 00:30:41 CEST 2002
----- Original Message -----
From: Thierry Cabuzel
To: fpc-pascal at deadlock.et.tudelft.nl
Sent: Sunday, August 18, 2002 12:19 AM
Subject: RE: [fpc-pascal]Sockets
If someone have sothing like this I would be pleased too. I have already tried to do something like this and fall. The client connect to the server, send the first packet, close the connection, reopen another connection, and send another packet. At this point the server only receive garbage :-(
Do you have some code and a log?
I am surprised, though that you close the connection. Surely, for the duration of the conversation, you should hold the connection open - if you are using TCP, that is. With UDP you would expect one packet per conversation and it shouldn't matter if you close the connection (in fact you don't have a connection end to end, only a local connection).
Actually, maybe that is your problem (though the code would be needed to know). With UDP you only send one packet and it is a connection less conversation - it is up to the higher levels to establish a re-try or other packet loss mechanism.
It would be good to hear from somebody who has had both a TCP and a UDP protocol working.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal