in reply to Re: Clean closing sockets
in thread Clean closing sockets
How do I setockopt() on a SOCKET when I can't generate the SOCKET because it won't bind to the port I'm telling it to?
Clarify:
$server doesn't exist until after the bind, but the bind won't happen (and perl will stop) at the ->new() because the port is already "taken"...my $server = IO::Socket::INET->new(....); setsockopt($server, SOL_SOCKET, SO_REUSEADDR, 1);
Thanks,
JP
-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Clean closing sockets
by trantor (Chaplain) on Aug 16, 2001 at 00:36 UTC | |
by JPaul (Hermit) on Aug 16, 2001 at 00:50 UTC |