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

Comparing AnyEvent/lib/AnyEvent/Socket.pm (file contents):
Revision 1.142 by root, Mon Dec 12 12:21:47 2011 UTC vs.
Revision 1.143 by root, Thu Mar 1 19:52:15 2012 UTC

1087If called in non-void context, then this function returns a guard object 1087If called in non-void context, then this function returns a guard object
1088whose lifetime it tied to the TCP server: If the object gets destroyed, 1088whose lifetime it tied to the TCP server: If the object gets destroyed,
1089the server will be stopped (but existing accepted connections will 1089the server will be stopped (but existing accepted connections will
1090not be affected). 1090not be affected).
1091 1091
1092Regardless, when the function returns to the caller, the socket is bound
1093and in listening state.
1094
1092If you need more control over the listening socket, you can provide a 1095If you need more control over the listening socket, you can provide a
1093C<< $prepare_cb->($fh, $host, $port) >>, which is called just before the 1096C<< $prepare_cb->($fh, $host, $port) >>, which is called just before the
1094C<listen ()> call, with the listen file handle as first argument, and IP 1097C<listen ()> call, with the listen file handle as first argument, and IP
1095address and port number of the local socket endpoint as second and third 1098address and port number of the local socket endpoint as second and third
1096arguments. 1099arguments.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines