1Net::FTP::dataconn(3) User Contributed Perl DocumentationNet::FTP::dataconn(3)
2
3
4

NAME

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

DESCRIPTION

9       Some of the methods defined in "Net::FTP" return an object which will
10       be derived from this class. The dataconn class itself is derived from
11       the "IO::Socket::INET" class, so any normal IO operations can be
12       performed.  However the following methods are defined in the dataconn
13       class and IO should be performed using these.
14
15       read ( BUFFER, SIZE [, TIMEOUT ] )
16           Read "SIZE" bytes of data from the server and place it into
17           "BUFFER", also performing any <CRLF> translation necessary.
18           "TIMEOUT" is optional, if not given, the timeout value from the
19           command connection will be used.
20
21           Returns the number of bytes read before any <CRLF> translation.
22
23       write ( BUFFER, SIZE [, TIMEOUT ] )
24           Write "SIZE" bytes of data from "BUFFER" to the server, also
25           performing any <CRLF> translation necessary. "TIMEOUT" is optional,
26           if not given, the timeout value from the command connection will be
27           used.
28
29           Returns the number of bytes written before any <CRLF> translation.
30
31       bytes_read ()
32           Returns the number of bytes read so far.
33
34       abort ()
35           Abort the current data transfer.
36
37       close ()
38           Close the data connection and get a response from the FTP server.
39           Returns true if the connection was closed successfully and the
40           first digit of the response from the server was a '2'.
41
42
43
44perl v5.26.3                      2017-11-14             Net::FTP::dataconn(3)
Impressum