ftp_get_flags(3)

NAME
ftp_get_flags, ftp_set_flags, ftp_get_cache_max_size, ftp_set_cache_max_size, ftp_get_cache_expire_time, ftp_set_cache_expire_time, ftp_get_io_timeout, ftp_set_io_timeout, ftp_get_host, ftp_whoami - access methods for data from FTP handle

SYNOPSIS
#include <libfget.h>

unsigned short ftp_get_flags(FTP *ftp);

void ftp_set_flags(FTP *ftp, unsigned short flags);

long ftp_get_cache_max_size(FTP *ftp);

void ftp_set_cache_max_size(FTP *ftp, long maxsize);

time_t ftp_get_cache_expire_time(FTP *ftp);

void ftp_set_cache_expire_time(FTP *ftp, time_texpire);

time_t ftp_get_io_timeout(FTP *ftp);

void ftp_set_io_timeout(FTP *ftp, time_t timeout);

char *ftp_get_host(FTP *ftp);

char *ftp_whoami(FTP *ftp);

VERSION
This man page documents version 1.2 of libfget.

DESCRIPTION
The ftp_get_flags() function returns the flags set in the FTP handle ftp. The ftp_set_flags() function sets the flags associated with the FTP handle ftp to flags. For a description of the flag bits, see ftp_connect(3).

The ftp_get_cache_max_size() function returns the maximum directory cache size for the FTP handle ftp. The ftp_set_cache_max_size() function sets the maximum directory cache size for the FTP handle ftp to maxsize.

The ftp_get_cache_expire_time() function returns the directory cache expiration time for the FTP handle ftp. The ftp_set_cache_expire_time() function sets the directory cache expiration time for the FTP handle ftp to expire.

The ftp_get_io_timeout() function returns the I/O timeout value for the FTP handle ftp. The ftp_set_io_timeout() function sets the I/O timeout value for the FTP handle ftp to timeout.

The ftp_get_host() function returns the hostname of the remote FTP server.

The ftp_whoami() function returns the name of the user who is currently logged in to the remote FTP server.

SEE ALSO
ftp_connect(3)