ftp_open.c

#include <unistd.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include "liboftp.h"
#include "sub.h"

関数

int ftp_initialize (LIBOFTP *ftp)
int ftp_open (LIBOFTP *ftp, const char *host, int port)

関数

int ftp_initialize ( LIBOFTP ftp  ) 

ftp構造体初期化

引数:
ftp LIBOFTPへのポインタ。
戻り値:
int エラーコード
覚え書き:
ftp構造体は、呼出側で確保する。

int ftp_open ( LIBOFTP ftp,
const char *  host,
int  port 
)

ftpサーバへ接続

引数:
ftp LIBOFTPへのポインタ。
host ホスト名または、IPアドレス文字列。
port ポート番号。ゼロならデフォルトを使用する。
戻り値:
int エラーコード
覚え書き:
ftp構造体は、呼出側で確保する。


libOftpに対してSun Mar 8 16:24:02 2009に生成されました。  doxygen 1.5.8