DragonFly On-Line Manual Pages

Search: Section:  


ftp_systype(3)                  C Library Calls                 ftp_systype(3)

NAME

ftp_systype, ftp_status - informational FTP protocol requests

SYNOPSIS

#include <libfget.h> char *ftp_systype(FTP *ftp); int ftp_status(FTP *ftp, char *buf, size_t bufsize);

VERSION

This man page documents version 1.3 of libfget.

DESCRIPTION

The ftp_systype() function returns a string representing the system type of the FTP server associated with ftp. The ftp_status() function queries the status of the FTP server associated with ftp and stores the response in the buffer buf of size bufsize.

RETURN VALUE

The ftp_systype() function returns a string representing the system type of the FTP server on success, or NULL on error (and sets errno). The ftp_status() function returns 0 on success, or -1 on error (and sets errno).

ERRORS

The ftp_systype() and ftp_status() functions fail if: ECONNRESET The server shut down the connection. The caller is then responsible for calling ftp_quit() with the FTP_QUIT_FAST flag set. ETIMEDOUT The operation timed out. (The timeout interval can be set via the FTP_OPT_IO_TIMEOUT option; see the ftp_set_options(3) man page for details.) EINVAL Unexpected response code received from server. EAGAIN An attempt was made to send a request to the server while the data connection is open. They may also fail for any of the errors specified for the underlying poll(2), read(2) or write(2) system calls.

SEE ALSO

libfget(3), ftp_open(3) Feep Networks January 2004 ftp_systype(3)

Search: Section: