> I am converting a project from using Borland Socket Components to use > Synapse. One issue I have not yet solved is the following: I do have a > client application which does send data to a server. Now at some point > the server shuts down. My problem is that Socket.SendStreamRaw does > not indicate that the remote host is down. There's no exception and > Socket.LastError is 0. The code I am using looks like
> Assert(FSocket <> nil); > Result := FSocket.CanWrite(CCanRWTimeOut); Why you calling this? You not need it! > if Result then > begin > FSocket.SendStreamRaw(AStream); > Result := FSocket.LastError = 0; > end; This must work as you are expecting. Are you using most actual version? Try it with Synasnap. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
