diff options
Diffstat (limited to 'lib/Net/Cmd.pm')
-rw-r--r-- | lib/Net/Cmd.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Net/Cmd.pm b/lib/Net/Cmd.pm index 1c312ca..3f102b9 100644 --- a/lib/Net/Cmd.pm +++ b/lib/Net/Cmd.pm @@ -190,6 +190,8 @@ sub set_status { 1; } +sub timeout { 0 } + sub _syswrite_with_timeout { my $cmd = shift; my $line = shift; @@ -748,6 +750,12 @@ 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'. |