in reply to Re^2: How do I get my IO::Socket::UNIX sockets to be non-blocking?
in thread How do I get my IO::Socket::UNIX sockets to be non-blocking?
Are you sure? You may be right, but that's not what the documents say. The blocking() method is inherited from IO::Handle, from what I can tell, and the documentation for IO::Handle says the following:
$io->blocking ( [ BOOL ] )
If called with an argument blocking will turn on non-blocking IO if BOOL is false, and turn it off if BOOL is true.blocking will return the value of the previous setting, or the current setting if BOOL is not given.
If an error occurs blocking will return undef and $! will be set.
...which should make it a good candidate for "or die $!;" syntax.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do I get my IO::Socket::UNIX sockets to be non-blocking?
by BrowserUk (Patriarch) on Feb 02, 2006 at 04:03 UTC |