ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.157 by root, Wed Jul 22 23:07:13 2009 UTC vs.
Revision 1.158 by root, Fri Jul 24 08:40:35 2009 UTC

69 69
70=over 4 70=over 4
71 71
72=item fh => $filehandle [MANDATORY] 72=item fh => $filehandle [MANDATORY]
73 73
74#=item fh => $filehandle [C<fh> or C<connect> MANDATORY]
75
74The filehandle this L<AnyEvent::Handle> object will operate on. 76The filehandle this L<AnyEvent::Handle> object will operate on.
75
76NOTE: The filehandle will be set to non-blocking mode (using 77NOTE: The filehandle will be set to non-blocking mode (using
77C<AnyEvent::Util::fh_nonblocking>) by the constructor and needs to stay in 78C<AnyEvent::Util::fh_nonblocking>) by the constructor and needs to stay in
78that mode. 79that mode.
80
81#=item connect => [$host, $service]
82#
83# You have to specify either this parameter, or C<connect>, below.
84#Try to connect to the specified host and service (port), using
85#C<AnyEvent::Socket::tcp_connect>.
86#
87#When this
79 88
80=item on_eof => $cb->($handle) 89=item on_eof => $cb->($handle)
81 90
82Set the callback to be called when an end-of-file condition is detected, 91Set the callback to be called when an end-of-file condition is detected,
83i.e. in the case of a socket, when the other side has closed the 92i.e. in the case of a socket, when the other side has closed the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines