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

📄 parse.h

📁 一个很有名的浏览器
💻 H
字号:
/* FTP directory parsing *//* $Id: parse.h,v 1.4.2.1 2005/04/06 09:30:31 jonas Exp $ */#ifndef EL__PROTOCOL_FTP_PARSE_H#define EL__PROTOCOL_FTP_PARSE_H#include "util/string.h"/* File types. *//* The value is the char value used when displaying the file type. */enum ftp_file_type {	FTP_FILE_PLAINFILE	= '-',	FTP_FILE_DIRECTORY	= 'd',	FTP_FILE_SYMLINK	= 'l',	FTP_FILE_UNKNOWN	= '?',};/* Information about one file in a directory listing. */struct ftp_file_info {	enum ftp_file_type type;	/* File type */	struct string name;		/* File name */	struct string symlink;		/* Link to which file points */	long size;			/* File size. -1 if unknown. */	time_t mtime;			/* Modification time */	unsigned int local_time_zone:1;	/* What format the mtime is in */	int permissions;		/* File permissions */};#define FTP_SIZE_UNKNOWN -1/* File info initializers: */#define INIT_FTP_FILE_INFO \	{ FTP_FILE_UNKNOWN, INIT_STRING("", 0), INIT_STRING("", 0), FTP_SIZE_UNKNOWN, 0, 0, 0644 }#define INIT_FTP_FILE_INFO_ROOT \	{ FTP_FILE_DIRECTORY, INIT_STRING("..", 2), INIT_STRING("", 0), FTP_SIZE_UNKNOWN, 0, 0, 0755 }struct ftp_file_info *parse_ftp_file_info(struct ftp_file_info *info, unsigned char *src, int len);/* Define to feed debug FTP responses into the parser. Then point ELinks to an * FTP server to run the tests. *//*#define DEBUG_FTP_PARSER*/#ifdef DEBUG_FTP_PARSERunsigned char *get_ftp_debug_parse_responses(unsigned char *buffer, int buflen);#endif#endif

⌨️ 快捷键说明

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