<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=thierry.cabuzel@skynet.be
href="mailto:thierry.cabuzel@skynet.be">Thierry Cabuzel</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=fpc-pascal@deadlock.et.tudelft.nl
href="mailto:fpc-pascal@deadlock.et.tudelft.nl">fpc-pascal@deadlock.et.tudelft.nl</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, August 18, 2002 12:19
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [fpc-pascal]Sockets</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=930261722-17082002><FONT face=Arial color=#0000ff size=2>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
:-(</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT
size=2></FONT> </DIV></BLOCKQUOTE>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2>Do you have some code and a
log? </FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2>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).</FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2>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.</FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2>It would be good to hear
from somebody who has had both a TCP and a UDP protocol working.</FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT
size=2>Peter</FONT></DIV></BODY></HTML>