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:34 PM
To:     'debian-user@lists.debian.org'
Cc:     The recipient's address is unknown.
Subject:        How to make kernel release socket..

<<File: vcard.vcf>>
Hi Firends !

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 socket,
I found that the server receive "SIGPIPE" and then server died..
How can we make the server ignore the "SIGPIPE" signal...

Thanks for any helps

whkye




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to