ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/handle/04_listen.t
(Generate patch)

Comparing AnyEvent/t/handle/04_listen.t (file contents):
Revision 1.2 by root, Sun Apr 27 19:36:55 2008 UTC vs.
Revision 1.3 by root, Fri May 2 09:04:57 2008 UTC

17 LocalPort => 32391, 17 LocalPort => 32391,
18 ReuseAddr => 1, 18 ReuseAddr => 1,
19 ); 19 );
20my $ae_sock = 20my $ae_sock =
21 AnyEvent::Socket->new ( 21 AnyEvent::Socket->new (
22 PeerAddr => "localhost:32391", 22 PeerAddr => "127.0.0.1:32391",
23 on_connect => sub { 23 on_connect => sub {
24 my ($ae_sock, $error) = @_; 24 my ($ae_sock, $error) = @_;
25 if ($error) { diag "connection failed: $!"; $cv->broadcast; return } 25 if ($error) { diag "connection failed: $!"; $cv->broadcast; return }
26 26
27 print "connected to ".$ae_sock->fh->peerhost.":".$ae_sock->fh->peerport."\n"; 27 print "connected to ".$ae_sock->fh->peerhost.":".$ae_sock->fh->peerport."\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines