AW: [En-Nut-Discussion] Connection interrupt detection...

Robert Hildebrand robert.hildebrand at ims.fhg.de
Mon Oct 6 08:00:04 CEST 2003


Hi Czerteak,

maybe you can send "alive" -Characters from client to your server (you
didn't tell if you need this direction), so you get a read-timeout on the
server-side, if the client is not listening.

Robert

-----Ursprungliche Nachricht-----
Von: en-nut-discussion-admin at egnite.de
[mailto:en-nut-discussion-admin at egnite.de]Im Auftrag von Czerteak
Gesendet: Montag, 6. Oktober 2003 00:32
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] Connection interrupt detection...


Hi,

I need to perform a specific task but I don't know how. :-( In my Ethernut,
I
have a program which acts as a TCP server. The client connects and starts to
"listen" (just accepts data). The server serves the data in some interval
(about 10 bytes every 50ms). I need to detect whether the client side is
still listening. My idea was to change the socket timeout to some short time
so the connection would be terminated automatically (if no ACK comes back in
50ms it's clear the other side is dead).

Is it a good approach? It ithere a better solution? What should I change to
shorten the timeout to such small value?

Thanks...
Czerteak

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion






More information about the En-Nut-Discussion mailing list