ftpsite()

The ftpsite() call executes the site command. (For more information about the site command, see the TCP/IP Command Reference .)

Note: ftpsite() does not support connections through a firewall.

Syntax

#include <ftpapi.h>

int ftpsite(host, userid, passwd, acct, sitestr)
char *host;
char *userid;
char *passwd;
char *acct;
char *sitestr;

Parameters

host

userid passwd acct sitestr

Return Values

The value 0 indicates success; the value -1 indicates an error. The value of ftperrno indicates the specific error. See Return Values for a description of the return codes.

Examples

int rc;rc=ftpsite("conypc","jason","ehgr1",NULL,"idle 2000");

The idle is set to time out in 2000 seconds. Your server might not support that amount of idle time.


[Back: ftprmd()]
[Next: ftpsys()]