ftpc_set_passive_mode

NAME
SYNOPSIS
DESCRIPTION
RETURNS
AUTHOR
LICENSE
VERSION

NAME

ftpc_set_passive_mode - Change to/from active or passive mode.

SYNOPSIS

#include <pthr_ftpc.h>

int ftpc_set_passive_mode (ftpc ftpc, int flag);

DESCRIPTION

If flag is true, all future connections on this ftpc object will be in passive mode. If flag is false, all future connections will be in active mode.
Passive mode is required by a few servers and some firewalls.

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