[En-Nut-Discussion] TCP listening socket problems

Trevor O'Grady togrady at comtech.uk.com
Tue Dec 30 01:36:04 CET 2003


Will a TCP listening socket have a timeout ? I'm getting some unexpected closures of listening sockets especially when connecting to the server after the first connection.
The close always occurs after receiving something which makes me suspect this is not a timeout issue. I detect the socket closing by NutTcpReceive returning -1. If I then call NutTcpError on the socket I just get 10057 (ENOTCONN        10057   //!< Socket is not connected ).
I was initially using streams instead of the NutTcp functions but experienced similar problems.

Any help greatly appreciated,
Trevor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20031230/bcaee51d/attachment.html>


More information about the En-Nut-Discussion mailing list