#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 | エラーコード |
int ftp_open | ( | LIBOFTP * | ftp, | |
const char * | host, | |||
int | port | |||
) |
ftpサーバへ接続
ftp | LIBOFTPへのポインタ。 | |
host | ホスト名または、IPアドレス文字列。 | |
port | ポート番号。ゼロならデフォルトを使用する。 |
int | エラーコード |