Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Net::FTP::dataconn

Name Net::FTP::dataconn
Version 3.11
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/Net/FTP/dataconn.pm
Is Core No
Search CPAN for this module Net::FTP::dataconn
Documentation Net::FTP::dataconn
Module Details Net::FTP::dataconn

NAME

Net::FTP::dataconn - FTP Client data connection class


DESCRIPTION

Some of the methods defined in Net::FTP return an object which will be derived from this class. The dataconn class itself is derived from the IO::Socket::INET class, so any normal IO operations can be performed. However the following methods are defined in the dataconn class and IO should be performed using these.

read ( BUFFER, SIZE [, TIMEOUT ] )
Read SIZE bytes of data from the server and place it into BUFFER, also performing any <CRLF> translation necessary. TIMEOUT is optional, if not given, the timeout value from the command connection will be used.

Returns the number of bytes read before any <CRLF> translation.

write ( BUFFER, SIZE [, TIMEOUT ] )
Write SIZE bytes of data from BUFFER to the server, also performing any <CRLF> translation necessary. TIMEOUT is optional, if not given, the timeout value from the command connection will be used.

Returns the number of bytes written before any <CRLF> translation.

bytes_read ()
Returns the number of bytes read so far.

abort ()
Abort the current data transfer.

close ()
Close the data connection and get a response from the FTP server. Returns true if the connection was closed successfully and the first digit of the response from the server was a '2'.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024