bind

Sheldon Lee-Wen sheldonl at nortelnetworks.com
Mon Jun 18 14:37:42 UTC 2001


Hi,

  I'm writing a pop3 server (for fun and to learn network programming), however, I have one problem that is bugging me.
Whenever I ctrl-c the program or shut it down gracefully (I'm also using a client issued command that issues a shutdown
on the server side, just for testing purposes), and try to start it back up right away I get the message:
bind failed: Address already in use (I'm catching the error w/ perror("bind failed"); ) The signal's are handled
w/ a piece of code that closes all open client connections and then closes the server socket fd as well.

Any suggestions? Is this something I can fix?

-- 
Cheers,
Sheldon Lee-Wen

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list