Data transfer procedures from the server


STATUS FtpRetrTimeout(FTP *, char *command, char *inp, char *out 4, long time)

Sends a command to the server, if command contains substring %s it will be replaced by string inp. Creates data transfer channel, and copying data from this channel to a local file out. If during time period ``time'' no characters are obtained from the server, this connection will be closed, and Input/Output error status will be returned. When timeout=0, timeout in library level will be turned off, but procedures may be aborted by the kernel of TCP/IP, when the kernel's timeout expires. 5


FtpRetr(FTP *, char *command, char *inp, char *out)

Calls FtpRetrTimeout, with turned off timeout.


FtpGetTimeout(FTP *, char *inp, char *out, long time)

Transfers file inp from the server to the local file out, with timeout=time.


FtpGet(FTP *, char *in, char *out)

Calls FtpGetTimeout, with turned off timeout.


FtpDirectory(FTP *, char *pat6, char *out)

Transfers files listing from the server, described by pat, to the local file out.


FtpDir(FTP *, char *out)

Transfers files listing of the current directory from the server to the local file out.