NAME
Coro::Socket - non-blocking socket-io
SYNOPSIS
use Coro::Socket;
DESCRIPTION
This module implements socket-handles in a coroutine-compatible way, that is, other coroutines can run while reads or writes block on the handle. Coro::Handle.
- $fh = new_inet Coro::Socket param => value, ...
-
Create a new non-blocking tcp handle and connect to the given host and port. The parameter names and values are mostly the same as in IO::Socket::INET (as ugly as I think they are).
If the host is unreachable or otherwise cannot be connected to this method returns undef. On all other errors ot croak's.
Multihomed is always enabled.
$fh = new_inet Coro::Socket PeerHost => "localhost", PeerPort => 'finger';
- connect, listen, bind, accept, getsockopt, setsockopt, send, recv, getpeername, getsockname
-
Do the same thing as the perl builtins (but return true on EINPROGRESS). Remember that these must be method calls.
AUTHOR
Marc Lehmann <pcg@goof.com>
http://www.goof.com/pcg/marc/
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 178:
You forgot a '=back' before '=head1'