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

📄 request.h

📁 代理服务器是怎样操作和运行的,希望能提供一种参考和学习
💻 H
字号:
// Request.h : header file
//

#ifndef __Request_H__
#define __Request_H__

/////////////////////////////////////////////////////////////////////////////
// CConnectionPropertyPage dialog

struct siteInfo
{
	siteInfo()
	{
		nSent = nReceived = nRequestCount = 0;
	}
	int nSent, nReceived;
	int nRequestCount;
};

extern CPtrList gptrArryTempListeners;
extern CCriticalSection	gUserLogCS;
extern CMapStringToPtr gmapUserToSiteMap;
struct Listener;

struct Request
{
	Request();
	~Request();
public:
	SOCKET socket;
	sockaddr_in address;
	CDWordArray dwArrayHosts;
	int nLogID;
	CString strFunction;
	CString strURL, strExt, strRequest, strHost, strIP;
	int nLength;
	INTERNET_PORT nPort;
	bool bCheckBlocking;
	int nRefCount;
	CFile* pFileCache;
	bool bRequestServer;
	CFile fileLog;
	CCriticalSection csfileLog;
	CTime timeLastModified;
	int nSent, nReceived;
	CMapStringToPtr mapDomainToSocket;			//to hold unique hosts in case of Smtp Request
	int nAppProtocol, nTransProtocol;
	BOOL bLogRequest;
	Listener* pListener;
	int nTime;
};

#endif // __Request_H__

⌨️ 快捷键说明

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