ftpc_set_passive_mode - Change to/from active or passive mode. |
#include <pthr_ftpc.h> int ftpc_set_passive_mode (ftpc ftpc, int flag); |
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. |
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 |