Net::FTP::dataconn

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'.

© 1993–2016 Larry Wall and others
Licensed under the GNU General Public License version 1 or later, or the Artistic License.
The Perl logo is a trademark of the Perl Foundation.
http://perldoc.perl.org/5.24.0/Net/FTP/dataconn.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部