You probably want to read about "setsockopt". In particular, the SO_REUSEADDR
function.
Install a signal handler to catch the SIGPIPE and do what you want. See
"sigaction" and other signal man pages.
jim
--
From: Won-Ho Kye[SMTP:[EMAIL PROTECTED]
Sent: Thursday, April 02, 1998 11:3
> I try to implement server program for specific purpose.
> If the server is killed, I found that the server can't binding again
> the socket for about 1 min.
> How to make kernel release socket, instantaneously, when the
> process killed?
> In addition, when the client is died without closing sock
2 matches
Mail list logo