DragonFly On-Line Manual Pages
    
    
	
ftp_fd(3)                       C Library Calls                      ftp_fd(3)
NAME
       ftp_fd, ftp_data_fd - return file descriptors for an FTP connection
SYNOPSIS
       #include <libfget.h>
       int ftp_fd(FTP *ftp);
       int ftp_data_fd(FTP *ftp);
VERSION
       This man page documents version 1.3 of libfget.
DESCRIPTION
       The ftp_fd() function returns the file descriptor of the FTP control
       connection associated with the FTP handle ftp.
       The ftp_data_fd() function returns the file descriptor of the FTP data
       connection associated with the FTP handle ftp.
RETURN VALUE
       The ftp_fd() function returns the file descriptor of the FTP control
       connection associated with the FTP handle ftp.  It cannot fail.
       The ftp_data_fd() function returns the file descriptor of the FTP data
       connection associated with the FTP handle ftp.  If no data connection
       is established, it will return -1.
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 poll(2) or select(2).
SEE ALSO
       libfget(3), poll(2), select(2)
Feep Networks                    January 2004                        ftp_fd(3)