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

📄 httptse.h

📁 小型搜索引擎,用C/C++编写,属于全文搜索引擎
💻 H
字号:
#ifndef HTTP_TSE_030717#define HTTP_TSE_0300717#include <map>using namespace std;extern pthread_mutex_t mymutex;const int PORT_NUMBER = 80;#define HTTP_VERSION		"HTTP/1.1"#define DEFAULT_USER_AGENT	"Tse"#define VERSION			"1.0"const int DEFAULT_TIMEOUT = 30;              /* Seconds to wait before giving up						 	 * when no data is arriving */const int REQUEST_BUF_SIZE = 1024;const int HEADER_BUF_SIZE = 1024;const int DEFAULT_PAGE_BUF_SIZE = 1024 * 200;      /* 200K should hold most things */const int MAX_PAGE_BUF_SIZE = 5 * 1024 * 1024;      /* 5MB is up limit *///int HttpFetch(string strUrl, char **fileBuf, char **fileHead, char **location);int HttpFetch(string strUrl, char **fileBuf, char **fileHead, char **location, int* sock);int _http_read_header(int sock, char *headerPtr);int MakeSocket(const char *host);int nonb_connect(int,struct sockaddr*,int);#endif

⌨️ 快捷键说明

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