FtpClose

Close a data connection or forcibly close a control connection.

SYNOPSIS

#include <ftplib.h>
int FtpClose(netbuf *nData);

PARAMETERS

nData
A handle returned by FtpAccess() or FtpConnect().

DESCRIPTION

Closes the data connection specified by 'nData' and frees associated resources.

If nData is a control connection, it will be forcibly closed without sending a 'QUIT' to the server.

RETURN VALUE

Returns 1 if successful or 0 on error.