Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$flags = fcntl($socket, F_GETFL, 0) or die "Can't get flags for socket: $!\n"; fcntl($socket, F_SETFL, $flags | O_NONBLOCK) or die "Can't make socket nonblocking: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Non-Blocking Sockets
by Anonymous Monk on Sep 20, 2003 at 16:51 UTC | |
|
Re: Non-Blocking Sockets ($!)
by tye (Sage) on Sep 22, 2003 at 15:07 UTC |