[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
TCP sockets timeout...
Ze'ev Maor writes:
> how can I check whether a tcp socket I'm serving on (under Berkely sockets)
> is still alive, i.e. did the client
> on the other end is dead, or just didn't request any service for some time.
The Unix Socket Programming FAQ talks about this - take a look at
http://kipper.york.ac.uk/~vic/sock-faq/html/unix-socket-faq-2.html#ss2.8
This FAQ is generally a very useful resource if you want to find out
something about the way AF_INET sockets work in Unix and how to
program them.
---
Alex Shnitman ...................... alexsh@linux.org.il
PGP key on Web page .......... http://alexsh.home.ml.org
Make this your home: .............. http://www.linux.org