help with socket programming
Hi,
How do I do timeout in socket programming? For example, if the client has got no answer in 90 seconds, it will print
a message "still waiting". How do I do this?
I have tried to use select & FD_ISSET, but it is a blocking call, so I had to use fork with it, then when I kill this child,
it will create a zombie process on my system. Is there a better way to do this, or how do I kill this child. I have tried
to use all the signals including SIGSTOP, SIGTERM and so on.
Thanks.
Shao.
--
____________________________________________________________________________
Shao Zhang - Running Debian 2.1 ___ _ _____
Department of Communications / __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _
University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` |
Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.com.au |___/
_____________________________________________________________________________
Reply to: