ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/DataConn.pm
(Generate patch)

Comparing AnyEvent-MP/MP/DataConn.pm (file contents):
Revision 1.9 by root, Fri Mar 23 00:38:14 2012 UTC vs.
Revision 1.10 by root, Tue Aug 29 22:39:40 2017 UTC

134 134
135The timeout should be large enough to cover at least four network 135The timeout should be large enough to cover at least four network
136round-trips and one message round-trip. 136round-trips and one message round-trip.
137 137
138Example: on node1, establish a connection to node2 and send a line of text, 138Example: on node1, establish a connection to node2 and send a line of text,
139one node2, provide a receiver function. 139on node2, provide a receiver function.
140 140
141 # node1, code executes in some port context 141 # node1, code executes in some port context
142 AnyEvent::MP::DataConn::connect_to "node2", 5, "pkg::receiver", 1, sub { 142 AnyEvent::MP::DataConn::connect_to "node2", 5, "pkg::receiver", 1, sub {
143 my ($hdl) = @_; 143 my ($hdl) = @_;
144 warn "connection established, sending line.\n" 144 warn "connection established, sending line.\n"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines