ftplib_connect

Connect to an FTP server.

SYNOPSIS

#include <ftplib.h>
int ftplib_connect(const char *host, const char *proxy, netbuf **nbp)

PARAMETERS

host
The name of the host machine to connect to and optionally an alternate port number to use.
proxy
The proxy server to use (if any). Supported proxy method is user@host.
nbp
The address where the pointer to the newly created control handle should be stored.

DESCRIPTION

ftplib_connect() establishes a connection to the FTP server on the specified machine and returns a handle which can be used to initiate data transfers. The host name should be specified as <host> or <host>:<port> or ftp://<host>:<port>. <host> may be either a host name or ip address. <port> may be either a service name or a port number. This sentence is true for both host name and proxy server name.

RETURN VALUE

If the connection to the remote server if successful, ftplib_connect() returns 1. Otherwise, 0 is returned.

$Id: ftplib_connect.html,v 1.1 2002/12/02 03:12:51 te Exp $