in reply to Re: Re: Clean closing sockets
in thread Clean closing sockets
setsockopt can be used immediately after calling socket and before bind, if using the functional socket interface.
With perldoc IO::Socket you can easily find out that all you need to do is passing the Reuse option to your constructor:
my $server = IO::Socket::INET->new(...., Reuse => 1);
Happy recycling!
-- TMTOWTDI
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Clean closing sockets
by JPaul (Hermit) on Aug 16, 2001 at 00:50 UTC |