Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PTCPSocket * PFTPClient::GetFile ( const PString filename,
DataChannelType  channel = NormalPort 

Begin retreiving a file from the remote FTP server. The second parameter indicates that the transfer is on a normal or passive data channel. In short, a normal transfer the server connects to the client and in passive mode the client connects to the server.

Socket to read data from, or NULL if an error occurred.
filenameName of file to get
channelData channel type.

Definition at line 296 of file ftpclnt.cxx.

  return channel != Passive ? NormalClientTransfer(RETR, filename)
                            : PassiveClientTransfer(RETR, filename);

Generated by  Doxygen 1.6.0   Back to index