… | |
… | |
70 | |
70 | |
71 | =item fh => $filehandle [MANDATORY] |
71 | =item fh => $filehandle [MANDATORY] |
72 | |
72 | |
73 | The filehandle this L<AnyEvent::Handle> object will operate on. |
73 | The filehandle this L<AnyEvent::Handle> object will operate on. |
74 | |
74 | |
75 | NOTE: The filehandle will be set to non-blocking (using |
75 | NOTE: The filehandle will be set to non-blocking mode (using |
76 | AnyEvent::Util::fh_nonblocking). |
76 | C<AnyEvent::Util::fh_nonblocking>) by the constructor and needs to stay in |
|
|
77 | that mode. |
77 | |
78 | |
78 | =item on_eof => $cb->($handle) |
79 | =item on_eof => $cb->($handle) |
79 | |
80 | |
80 | Set the callback to be called when an end-of-file condition is detected, |
81 | Set the callback to be called when an end-of-file condition is detected, |
81 | i.e. in the case of a socket, when the other side has closed the |
82 | i.e. in the case of a socket, when the other side has closed the |