diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2016-08-08 08:30:49 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2016-08-08 08:30:49 +0100 |
commit | a9282e3c8c0ba32e416b76714e4a3a4739a3d04a (patch) | |
tree | 18dddb07c0d09629c3ec8bc2cf14f866d3abc17d /cpan | |
parent | c318a6eee0cd809c5d22fb13a5d29bfa7eb959d8 (diff) | |
download | perl-a9282e3c8c0ba32e416b76714e4a3a4739a3d04a.tar.gz |
Upgrade libnet from version 3.09_01 to 3.10
Diffstat (limited to 'cpan')
-rw-r--r-- | cpan/libnet/Makefile.PL | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/Cmd.pm | 19 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/Config.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/Domain.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/FTP.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/FTP/A.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/FTP/E.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/FTP/I.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/FTP/L.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/FTP/dataconn.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/NNTP.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/Netrc.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/POP3.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/SMTP.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/lib/Net/Time.pm | 2 | ||||
-rw-r--r-- | cpan/libnet/t/datasend.t | 2 |
16 files changed, 24 insertions, 25 deletions
diff --git a/cpan/libnet/Makefile.PL b/cpan/libnet/Makefile.PL index 6efc003357..3eb29858b7 100644 --- a/cpan/libnet/Makefile.PL +++ b/cpan/libnet/Makefile.PL @@ -66,7 +66,7 @@ MAIN: { ABSTRACT => 'Collection of network protocol modules', AUTHOR => 'Graham Barr <gbarr@pobox.com>, Steve Hay <shay@cpan.org>', LICENSE => 'perl_5', - VERSION => '3.09', + VERSION => '3.10', META_MERGE => { 'meta-spec' => { diff --git a/cpan/libnet/lib/Net/Cmd.pm b/cpan/libnet/lib/Net/Cmd.pm index 2b3b4afe07..38054c4124 100644 --- a/cpan/libnet/lib/Net/Cmd.pm +++ b/cpan/libnet/lib/Net/Cmd.pm @@ -28,7 +28,7 @@ BEGIN { } } -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; our @ISA = qw(Exporter); our @EXPORT = qw(CMD_INFO CMD_OK CMD_MORE CMD_REJECT CMD_ERROR CMD_PENDING); @@ -190,8 +190,6 @@ sub set_status { 1; } -sub timeout { 0 } - sub _syswrite_with_timeout { my $cmd = shift; my $line = shift; @@ -656,10 +654,15 @@ Net::Cmd - Network Command class (as used by FTP, SMTP etc) =head1 DESCRIPTION -C<Net::Cmd> is a collection of methods that can be inherited by a sub class -of C<IO::Handle>. These methods implement the functionality required for a +C<Net::Cmd> is a collection of methods that can be inherited by a sub-class +of C<IO::Socket::INET>. These methods implement the functionality required for a command based protocol, for example FTP and SMTP. +If your sub-class does not also derive from C<IO::Socket::INET> or similar (e.g. +C<IO::Socket::IP>, C<IO::Socket::INET6> or C<IO::Socket::SSL>) then you must +provide the following methods by other means yourself: C<close()> and +C<timeout()>. + =head1 USER METHODS These methods provide a user interface to the C<Net::Cmd> object. @@ -750,12 +753,6 @@ command server. Returns undef upon failure. -=item timeout () - -Returns the timeout value for this class, in seconds. The timeout provided -by the default implementation is 0; subclasses may override this if they -choose. - =item unsupported () Sets the status code to 580 and the response text to 'Unsupported command'. diff --git a/cpan/libnet/lib/Net/Config.pm b/cpan/libnet/lib/Net/Config.pm index a049ade225..a5935382bc 100644 --- a/cpan/libnet/lib/Net/Config.pm +++ b/cpan/libnet/lib/Net/Config.pm @@ -20,7 +20,7 @@ use Socket qw(inet_aton inet_ntoa); our @EXPORT = qw(%NetConfig); our @ISA = qw(Net::LocalCfg Exporter); -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; our($CONFIGURE, $LIBNET_CFG); diff --git a/cpan/libnet/lib/Net/Domain.pm b/cpan/libnet/lib/Net/Domain.pm index 82b66f6e09..796bbaf81f 100644 --- a/cpan/libnet/lib/Net/Domain.pm +++ b/cpan/libnet/lib/Net/Domain.pm @@ -21,7 +21,7 @@ use Net::Config; our @ISA = qw(Exporter); our @EXPORT_OK = qw(hostname hostdomain hostfqdn domainname); -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; my ($host, $domain, $fqdn) = (undef, undef, undef); diff --git a/cpan/libnet/lib/Net/FTP.pm b/cpan/libnet/lib/Net/FTP.pm index 7ea4c8131e..905d83019c 100644 --- a/cpan/libnet/lib/Net/FTP.pm +++ b/cpan/libnet/lib/Net/FTP.pm @@ -25,7 +25,7 @@ use Net::Config; use Socket; use Time::Local; -our $VERSION = '3.09_01'; +our $VERSION = '3.10'; our $IOCLASS; my $family_key; diff --git a/cpan/libnet/lib/Net/FTP/A.pm b/cpan/libnet/lib/Net/FTP/A.pm index a1de651740..c889687b15 100644 --- a/cpan/libnet/lib/Net/FTP/A.pm +++ b/cpan/libnet/lib/Net/FTP/A.pm @@ -13,7 +13,7 @@ use Carp; use Net::FTP::dataconn; our @ISA = qw(Net::FTP::dataconn); -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; our $buf; diff --git a/cpan/libnet/lib/Net/FTP/E.pm b/cpan/libnet/lib/Net/FTP/E.pm index b4e73081db..8ebec64345 100644 --- a/cpan/libnet/lib/Net/FTP/E.pm +++ b/cpan/libnet/lib/Net/FTP/E.pm @@ -8,6 +8,6 @@ use warnings; use Net::FTP::I; our @ISA = qw(Net::FTP::I); -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; 1; diff --git a/cpan/libnet/lib/Net/FTP/I.pm b/cpan/libnet/lib/Net/FTP/I.pm index 236e5b6495..b55002f8d6 100644 --- a/cpan/libnet/lib/Net/FTP/I.pm +++ b/cpan/libnet/lib/Net/FTP/I.pm @@ -13,7 +13,7 @@ use Carp; use Net::FTP::dataconn; our @ISA = qw(Net::FTP::dataconn); -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; our $buf; diff --git a/cpan/libnet/lib/Net/FTP/L.pm b/cpan/libnet/lib/Net/FTP/L.pm index 16559a8778..e4ab31efd7 100644 --- a/cpan/libnet/lib/Net/FTP/L.pm +++ b/cpan/libnet/lib/Net/FTP/L.pm @@ -8,6 +8,6 @@ use warnings; use Net::FTP::I; our @ISA = qw(Net::FTP::I); -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; 1; diff --git a/cpan/libnet/lib/Net/FTP/dataconn.pm b/cpan/libnet/lib/Net/FTP/dataconn.pm index 046fa90ef0..6f5d8b3108 100644 --- a/cpan/libnet/lib/Net/FTP/dataconn.pm +++ b/cpan/libnet/lib/Net/FTP/dataconn.pm @@ -13,7 +13,7 @@ use Carp; use Errno; use Net::Cmd; -our $VERSION = '3.09_01'; +our $VERSION = '3.10'; $Net::FTP::IOCLASS or die "please load Net::FTP before Net::FTP::dataconn"; our @ISA = $Net::FTP::IOCLASS; diff --git a/cpan/libnet/lib/Net/NNTP.pm b/cpan/libnet/lib/Net/NNTP.pm index 219c2612e7..764d580563 100644 --- a/cpan/libnet/lib/Net/NNTP.pm +++ b/cpan/libnet/lib/Net/NNTP.pm @@ -21,7 +21,7 @@ use Net::Cmd; use Net::Config; use Time::Local; -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; # Code for detecting if we can use SSL my $ssl_class = eval { diff --git a/cpan/libnet/lib/Net/Netrc.pm b/cpan/libnet/lib/Net/Netrc.pm index 7387284d2f..c075e1433c 100644 --- a/cpan/libnet/lib/Net/Netrc.pm +++ b/cpan/libnet/lib/Net/Netrc.pm @@ -18,7 +18,7 @@ use warnings; use Carp; use FileHandle; -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; our $TESTING; diff --git a/cpan/libnet/lib/Net/POP3.pm b/cpan/libnet/lib/Net/POP3.pm index 2a1af4ba4e..bb18aafec3 100644 --- a/cpan/libnet/lib/Net/POP3.pm +++ b/cpan/libnet/lib/Net/POP3.pm @@ -20,7 +20,7 @@ use IO::Socket; use Net::Cmd; use Net::Config; -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; # Code for detecting if we can use SSL my $ssl_class = eval { diff --git a/cpan/libnet/lib/Net/SMTP.pm b/cpan/libnet/lib/Net/SMTP.pm index 6ad4eead1b..0dd966fdf6 100644 --- a/cpan/libnet/lib/Net/SMTP.pm +++ b/cpan/libnet/lib/Net/SMTP.pm @@ -21,7 +21,7 @@ use Net::Cmd; use Net::Config; use Socket; -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; # Code for detecting if we can use SSL my $ssl_class = eval { diff --git a/cpan/libnet/lib/Net/Time.pm b/cpan/libnet/lib/Net/Time.pm index 8fb3cc9321..9a7f3b244a 100644 --- a/cpan/libnet/lib/Net/Time.pm +++ b/cpan/libnet/lib/Net/Time.pm @@ -24,7 +24,7 @@ use Net::Config; our @ISA = qw(Exporter); our @EXPORT_OK = qw(inet_time inet_daytime); -our $VERSION = "3.09_01"; +our $VERSION = "3.10"; our $TIMEOUT = 120; diff --git a/cpan/libnet/t/datasend.t b/cpan/libnet/t/datasend.t index 05903fb90a..0aea9d4a39 100644 --- a/cpan/libnet/t/datasend.t +++ b/cpan/libnet/t/datasend.t @@ -21,6 +21,8 @@ BEGIN { use Net::Cmd; our @ISA = qw(Net::Cmd IO::File); + sub timeout { 0 } + sub new { my $fh = shift->new_tmpfile; binmode($fh); |