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

Comparing Coro/Event/Util.pm (file contents):
Revision 1.4 by root, Thu Nov 21 13:08:06 2002 UTC vs.
Revision 1.5 by root, Sat Mar 22 18:50:32 2003 UTC

60Work exactly like their perl counterparts, but do not block. Currently 60Work exactly like their perl counterparts, but do not block. Currently
61this is being implemented by forking, so it's not exactly low-cost. 61this is being implemented by forking, so it's not exactly low-cost.
62 62
63=cut 63=cut
64 64
65my $netdns = 0 && eval { use Net::DNS 0.24 }; 65my $netdns = eval { require Net::DNS::Resolver; new Net::DNS::Resolver; 0 };
66 66
67sub gethostbyname($) { 67sub gethostbyname($) {
68 if ($netdns) { 68 if ($netdns) {
69 #$netdns->query($_[0]);
69 die; 70 die;
70 } else { 71 } else {
71 _do_asy { gethostbyname $_[0] } @_; 72 _do_asy { gethostbyname $_[0] } @_;
72 } 73 }
73} 74}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines