thierry.cabuzel at skynet.be
Sun Aug 18 00:19:35 CEST 2002
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 :-(
De : fpc-pascal-admin at deadlock.et.tudelft.nl
[mailto:fpc-pascal-admin at deadlock.et.tudelft.nl]De la part de Peter H.M.
Envoyé : samedi 17 août 2002 22:57
À : fpc-pascal at lists.freepascal.org
Objet : [fpc-pascal]Sockets
I have read the previous discussion, last year, on the subject of sockets.
I am familiar with sockets under UNIX.
What I need to do in the short term is quite simple. I want to set up a
peer to peer UDP conversation between two machines, both of them windows
2000. Clearly it would be just as easy for one to be a UNIX box, once the
protocol is working.
The problem I have is that I am using the simple socket example the
previous discussion gave and I get a -1 from the connect. SocketError gives
me no help as it returns a 0, suggesting it all worked.
Ultimately I would like to get sockets working for IPV6 between two
cooperating processes - though actually this is one sub-goal to getting a
proper conversation going with the SMTP port with MS Exchange tnef.
Has anybody got some working code that sets up an internet socket on one
side, then exchanges messages (prefereably with UDP, though TCP is fine)? I
am sure that this should be fairly simple, but the documentation is sparce
in the extreme which makes it a little more of a challenge!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal