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

Comparing Coro/eg/event (file contents):
Revision 1.7 by root, Tue Jul 24 20:18:12 2001 UTC vs.
Revision 1.8 by root, Fri Jul 27 02:51:33 2001 UTC

9# this gets started everytime a user enters a finger command 9# this gets started everytime a user enters a finger command
10sub finger { 10sub finger {
11 my $user = shift; 11 my $user = shift;
12 my $host = shift; 12 my $host = shift;
13 13
14 my $fh = new_inet Coro::Socket PeerHost => $host, PeerPort => "finger" 14 my $fh = new Coro::Socket PeerHost => $host, PeerPort => "finger"
15 or die; 15 or die;
16 16
17 print $fh "$user\n"; 17 print $fh "$user\n";
18 18
19 print "$user\@$host: $_" while <$fh>; 19 print "$user\@$host: $_" while <$fh>;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines