diff options
Diffstat (limited to 'lib/Net/Cmd.pm')
-rw-r--r-- | lib/Net/Cmd.pm | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/Net/Cmd.pm b/lib/Net/Cmd.pm index e739c89..38054c4 100644 --- a/lib/Net/Cmd.pm +++ b/lib/Net/Cmd.pm @@ -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'. |