<!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.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Message d'origine-----<BR><B>De :</B> 
  fpc-pascal-admin@deadlock.et.tudelft.nl 
  [mailto:fpc-pascal-admin@deadlock.et.tudelft.nl]<B>De la part de</B> Peter 
  H.M. Brooks<BR><B>Envoyé :</B> samedi 17 août 2002 
  22:57<BR><B>À :</B> 
  fpc-pascal@lists.freepascal.org<BR><B>Objet :</B> 
  [fpc-pascal]Sockets<BR><BR></FONT></DIV>
  <DIV><FONT size=2>I have read the previous discussion, last year, on the 
  subject of sockets. I am familiar with sockets under UNIX.</FONT></DIV>
  <DIV><FONT size=2></FONT> </DIV>
  <DIV><FONT size=2>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.</FONT></DIV>
  <DIV><FONT size=2></FONT> </DIV>
  <DIV><FONT size=2>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.</FONT></DIV>
  <DIV><FONT size=2></FONT> </DIV>
  <DIV><FONT size=2>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.</FONT></DIV>
  <DIV><FONT size=2></FONT> </DIV>
  <DIV><FONT size=2>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!</FONT></DIV>
  <DIV><FONT size=2></FONT> </DIV>
  <DIV><FONT size=2>Peter</FONT></DIV></BLOCKQUOTE></BODY></HTML>