in reply to forking server & bind: Address already in use
If you're using IO::Socket (which you really should be using), set the 'Reuse' argument to a true value, otherwise you'll have to call setsockopt directly:
See your system documentation for 'setsockopt' for more information about valid arguments. See perlipc for additional information about using network sockets in Perl.setsockopt(SERVER, SOL_SOCKET, SO_REUSEADDR, pack("l", 1));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: forking server & bind: Address already in use
by jhanna (Scribe) on Jan 17, 2001 at 02:27 UTC | |
by jhanna (Scribe) on Jan 17, 2001 at 02:35 UTC |