ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/eg/connect
(Generate patch)

Comparing AnyEvent/eg/connect (file contents):
Revision 1.2 by elmex, Sat May 24 17:06:10 2008 UTC vs.
Revision 1.3 by root, Sat May 24 23:34:28 2008 UTC

21 on_eof => sub { print "received eof\n"; undef $hdl } 21 on_eof => sub { print "received eof\n"; undef $hdl }
22 ); 22 );
23 23
24 $hdl->push_write ("GET / HTTP/1.0\015\012\015\012"); 24 $hdl->push_write ("GET / HTTP/1.0\015\012\015\012");
25 25
26 $hdl->push_read_line (sub { 26 $hdl->push_read (line => sub {
27 my ($hdl, $line) = @_; 27 my ($hdl, $line) = @_;
28 print "Yay, got line: $line\n"; 28 print "Yay, got line: $line\n";
29 $cv->broadcast; 29 $cv->broadcast;
30 }); 30 });
31 31

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines