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.104 by root, Sat Aug 1 09:14:54 2009 UTC vs.
Revision 1.105 by root, Mon Aug 3 20:51:01 2009 UTC

827 $! = Errno::ETIMEDOUT; 827 $! = Errno::ETIMEDOUT;
828 $state{next}(); 828 $state{next}();
829 }) if $timeout; 829 }) if $timeout;
830 830
831 # called when the connect was successful, which, 831 # called when the connect was successful, which,
832 # in theory, could be the case immediately (but never is in practise) 832 # in theory, could be the case immediately
833 # (but only happens in special cases)
833 $state{connected} = sub { 834 $state{connected} = sub {
834 # we are connected, or maybe there was an error 835 # we are connected, or maybe there was an error
835 if (my $sin = getpeername $state{fh}) { 836 if (my $sin = getpeername $state{fh}) {
836 my ($port, $host) = unpack_sockaddr $sin; 837 my ($port, $host) = unpack_sockaddr $sin;
837 838

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines