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

Comparing Coro/Coro/LWP.pm (file contents):
Revision 1.10 by root, Sun May 25 03:05:42 2008 UTC vs.
Revision 1.11 by root, Sun May 25 05:00:03 2008 UTC

63=cut 63=cut
64 64
65package Coro::LWP; 65package Coro::LWP;
66 66
67use strict; 67use strict;
68no warnings;
69
70BEGIN {
71 # suppress warnings
72 local $^W = 0;
73 require Net::Config;
74}
68 75
69# import these so they cna grab Socket::inet_aton 76# import these so they cna grab Socket::inet_aton
70use AnyEvent::Util (); 77use AnyEvent::Util ();
71use AnyEvent::DNS (); 78use AnyEvent::DNS ();
72 79
73use Coro::Select (); 80use Coro::Select ();
74use Coro::Util (); 81use Coro::Util ();
75use Coro::Socket (); 82use Coro::Socket ();
76 83
77use Socket (); 84use Socket ();
85
78use IO::Socket::INET (); 86use IO::Socket::INET ();
79 87
80use Net::HTTP (); 88use Net::HTTP ();
81use Net::FTP (); 89use Net::FTP ();
82use Net::NNTP (); 90use Net::NNTP ();
88for (@Net::HTTP::ISA, @Net::FTP::ISA, @Net::NTTP::ISA) { 96for (@Net::HTTP::ISA, @Net::FTP::ISA, @Net::NTTP::ISA) {
89 $_ = Coro::LWP::Socket:: if $_ eq IO::Socket::INET::; 97 $_ = Coro::LWP::Socket:: if $_ eq IO::Socket::INET::;
90} 98}
91 99
92package Coro::LWP::Socket; 100package Coro::LWP::Socket;
101
102no warnings;
93 103
94use base Coro::Socket::; 104use base Coro::Socket::;
95 105
96sub new { 106sub new {
97 my $self = shift; 107 my $self = shift;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines