ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Event/Socket.pm
(Generate patch)

Comparing Coro/Event/Socket.pm (file contents):
Revision 1.24 by pcg, Thu May 13 16:12:17 2004 UTC vs.
Revision 1.25 by pcg, Fri May 14 13:25:10 2004 UTC

26 26
27use Coro::Util (); 27use Coro::Util ();
28 28
29use base 'Coro::Handle'; 29use base 'Coro::Handle';
30 30
31$VERSION = 0.96; 31$VERSION = 0.97;
32 32
33sub _proto($) { 33sub _proto($) {
34 $_proto{$_[0]} ||= do { 34 $_proto{$_[0]} ||= do {
35 ((getprotobyname $_[0])[2] || (getprotobynumber $_[0])[2]) 35 ((getprotobyname $_[0])[2] || (getprotobynumber $_[0])[2])
36 or croak "unsupported protocol: $_[0]"; 36 or croak "unsupported protocol: $_[0]";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines