.TH ftp_fd 3 "January 2004" "Feep Networks" "C Library Calls" .SH NAME ftp_fd, ftp_data_fd \- return file descriptors for an FTP connection .SH SYNOPSIS .B #include .BI "int ftp_fd(FTP *" ftp ");" .BI "int ftp_data_fd(FTP *" ftp ");" .SH VERSION This man page documents version 1.3 of \fBlibfget\fP. .SH DESCRIPTION The \fBftp_fd\fP() function returns the file descriptor of the FTP control connection associated with the \fBFTP\fP handle \fIftp\fP. The \fBftp_data_fd\fP() function returns the file descriptor of the FTP data connection associated with the \fBFTP\fP handle \fIftp\fP. .SH RETURN VALUE The \fBftp_fd\fP() function returns the file descriptor of the FTP control connection associated with the \fBFTP\fP handle \fIftp\fP. It cannot fail. The \fBftp_data_fd\fP() function returns the file descriptor of the FTP data connection associated with the \fBFTP\fP handle \fIftp\fP. If no data connection is established, it will return -1. .SH NOTES Most applications will never need to use these functions. They are provided solely for the purpose of applications that may be structured around a synchronous I/O multiplexing loop using \fBpoll\fP(2) or \fBselect\fP(2). .SH SEE ALSO .BR libfget (3), .BR poll (2), .BR select (2)