⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftp_dir.h

📁 涵盖ftp封装的大部分库函数 以get命令为例演示,一个不错的ftp编程资料
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -