ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Event/Socket.pm
(Generate patch)

Comparing Coro/Event/Socket.pm (file contents):
Revision 1.8 by root, Wed Oct 3 01:33:46 2001 UTC vs.
Revision 1.9 by root, Wed Oct 3 01:34:19 2001 UTC

168sub setsockopt { setsockopt tied(${$_[0]})->[0], $_[1], $_[2], $_[3] } 168sub setsockopt { setsockopt tied(${$_[0]})->[0], $_[1], $_[2], $_[3] }
169sub send { send tied(${$_[0]})->[0], $_[1], $_[2], @_ > 2 ? $_[3] : () } 169sub send { send tied(${$_[0]})->[0], $_[1], $_[2], @_ > 2 ? $_[3] : () }
170sub recv { recv tied(${$_[0]})->[0], $_[1], $_[2], @_ > 2 ? $_[3] : () } 170sub recv { recv tied(${$_[0]})->[0], $_[1], $_[2], @_ > 2 ? $_[3] : () }
171sub sockname { getsockname tied(${$_[0]})->[0] } 171sub sockname { getsockname tied(${$_[0]})->[0] }
172sub peername { getpeername tied(${$_[0]})->[0] } 172sub peername { getpeername tied(${$_[0]})->[0] }
173sub shutdown { shutdown tied(${$_[0]})->[0] } 173sub shutdown { shutdown tied(${$_[0]})->[0], $_[1] }
174 174
175=item ($peername, $fh) = $listen_fh->accept 175=item ($peername, $fh) = $listen_fh->accept
176 176
177In scalar context, returns the newly accepted socket (or undef) and in 177In scalar context, returns the newly accepted socket (or undef) and in
178list context return the ($fh, $peername) pair (or nothing). 178list context return the ($fh, $peername) pair (or nothing).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines