ftp_dir.h

来自「涵盖ftp封装的大部分库函数 以get命令为例演示,一个不错的ftp编程资料」· C头文件 代码 · 共 39 行

H
39
字号
#ifndef _H_FTPFUNC_#define _H_FTPFUNC_#include <stdio.h>#include <bool.h>#include <net/libftp.h>#define NORMAL		0#define ABNORMAL	1#define ON			1#define OFF			0#define RECEIVE		0#define SEND		1typedef struct h_logininfo{	char	remotehost[14+1]; /* remote host name */	char	username[20+1];   /* login user name  */	char	passwd[8+1];      /* login user password */	char	remotepath[128+1]; /* remote file name */	char	localfile[64+1];  /* local file name */	char	trantime[5+1];    /* login continuance time */	int		trantype;     /* use 'a'(ascii) or b(binary) to tran file */	int		tranmode;         /* send or receive file */	BOOL	debug;            /* show debug infomation */}LOGININFO;typedef struct h_fileinfo{	char	FileName[64+1];	char	FileUser[20+1];	char	FileGroup[20+1];	char	FilePer[10+1];	size_t	FileSize;}FILEINFO;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?