Subj : Re: recycling telnet serv To : Jon Desvin From : Deuce Date : Mon Oct 10 2005 10:25 pm Re: Re: recycling telnet serv By: Jon Desvin to alt.bbs.synchronet on Mon Oct 10 2005 07:49 pm > > OK, fair enough, but what I was asking is whether there is a way to tell > > the O/S to drop the socket *now* instead of waiting. > > Since you're using *nix I am assuming you have at least a little background > with C code -- before making a call to bind() run something like: > > int val = 1 ; > > setsockopt( listenSocket, SOL_SOCKET, SO_REUSEADDR, (const void*) &val, > sizeof(int) ) ; > > This will generally do what you are asking. You can just add REUSEADDR to ctrl/sockopts.cfg --- þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!) .