ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/tcp.ext
(Generate patch)

Comparing deliantra/maps/perl/tcp.ext (file contents):
Revision 1.1 by root, Thu Dec 14 04:31:25 2006 UTC vs.
Revision 1.2 by root, Fri Dec 15 19:06:29 2006 UTC

16 # extension yes, completely stupid, not yet 16 # extension yes, completely stupid, not yet
17 warn "unable to establish listen sockect, exiting.\n"; 17 warn "unable to establish listen sockect, exiting.\n";
18 exit (2); 18 exit (2);
19} 19}
20 20
21Event->io (fd => $LISTEN, poll => 'r', cb => sub { 21Event->io (fd => $LISTEN, poll => 'r', data => cf::WF_AUTOCANCEL, cb => sub {
22 my ($fh, $peername) = $LISTEN->accept 22 my ($fh, $peername) = $LISTEN->accept
23 or return; 23 or return;
24 24
25 my $fd = fileno $fh; 25 my $fd = fileno $fh;
26 my $host = inet_ntoa +(sockaddr_in $peername)[1]; 26 my $host = inet_ntoa +(sockaddr_in $peername)[1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines