ftpc_type, ftpc_ascii, ftpc_binary - Set connection type. |
#include <pthr_ftpc.h> int ftpc_type (ftpc ftpc, char type); int ftpc_ascii (ftpc ftpc); int ftpc_binary (ftpc ftpc); |
ftpc_type sets the connection type. Most FTP servers only support type 'a' (ASCII) or type 'i' (bInary), although esoteric FTP servers might support 'e' (EBCDIC). |
ftpc_ascii sets the type to ASCII. |
ftpc_binary sets the type to bInary. |
0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
pthrlib-3.0.3 |