[En-Nut-Discussion] Disconnect Cable

Hermann Schulz hs at ehse.de
Wed Mar 2 13:02:30 CET 2005


Hello,
 
I use Eternut 2 with Atmega 128 and the Software 3.9.1.
What must I do that the TCP Protocol works again, after a disconnected
Ethernet cable.
Mostly a reconnection from the PC is not possible. Only after a reset.
The    "stream->so_state == 4 "(Established).
When I close the PC programm and start the programm later,it works very
good.
if(sock2->so_state != TCPS_ESTABLISHED)
{
  fclose(stream2);
  NutTcpCloseSocket(sock2);
  NutThreadYield(); 
}
 
regards
Hermann
 



 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20050302/de237e0c/attachment.html>


More information about the En-Nut-Discussion mailing list