Other commands for server


FtpCommand(FTP *, char *command, char *param, int ok1, ok2, ok3, ..., okN, EOF)

Sends a command, composed from command and param using sprintf function. Reads an answer from the server. When return code from the server is not included to ok-list(ok1,ok2...) the sign of code will be inverted.


FtpType(FTP *,char *mode)

Sets transfer mode, such as ``A'',''I'',''S''


FtpBinary(FTP *)

Sets binary mode


FtpAscii(FTP *)

Sets ASCII mode


FtpMkdir(FTP *,char *dirname)

Makes directory on server


FtpChdir(FTP *,char *dirname)

Changes working directory on server


FtpRm(FTP *,char *filename)

Removes file on server


char *FtpPwd(FTP *)

Returns the name of working directory on server


FtpMove(FTP *,char *oldfilename, char *newfilename)

Renames file from oldfilename to newfilename


FtpGetFile(FTP *,char *filename)

Sends start transfer file command to server. Does not make data channel


FtpPutFile(FTP *,char *filename)

Sends start transfer file command to the server. Does not make data channel


FtpPort(FTP *, int a, int b, int c, int d, int e, int f)

A command for the server for making a new data channel. a.b.c.d is an IP address of a client(i.e. your IP address), e*256+f is a port number