NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES
$(OS_DIR)/lib/libftpd.a #include <arpa/ftpd/ftpd.h>int ftpdHandleCnx(FtpConn *conn);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
This function manages a connection between the server and client. The connection is terminated when the client disconnects. The FTPD library interprets the client commands and translates them into actions. Some actions callback routines to be provided by the application. These callbacks are described in the introduction manual page.
ftpdGetCnx interprets conn->in and conn->out as file descriptors corresponding to the input and output of the control connection. The file descriptors are usually identical.
Returns 0 if the session ends normally, -1 otherwise.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES