ftpc_type

NAME
SYNOPSIS
DESCRIPTION
RETURNS
AUTHOR
LICENSE
VERSION

NAME

ftpc_type, ftpc_ascii, ftpc_binary - Set connection type.

SYNOPSIS

#include <pthr_ftpc.h>

int ftpc_type (ftpc ftpc, char type);
int ftpc_ascii (ftpc ftpc);
int ftpc_binary (ftpc ftpc);

DESCRIPTION

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.

RETURNS

0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3