Click here to Skip to main content
12,357,409 members (72,816 online)
Click here to Skip to main content

Stats

151.7K views
4.5K downloads
62 bookmarked
Posted

How Proxy Server serves FTP clients?

, 10 Feb 2005 CPOL
This article describes how Proxy Server deals with PORT and PASV FTP commands
LiteProxyServer.exe
IPHlpApi.Lib
RES
LiteProxyServerDoc.ico
Mem1.ICO
Mem2.ICO
Mem3.ICO
Mem4.ICO
Mem5.ICO
Mem6.ICO
Mem7.ICO
Mem8.ICO
Mem9.ICO
Mem10.ICO
ChatRoom.ico
LiteProxyServer.ico
Toolbar.bmp
BITMAP1.BMP
BMP00001.BMP
BMP00002.BMP
LiteProxyServer.dsp
LiteProxyServer.dsw
// 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__

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160621.1 | Last Updated 10 Feb 2005
Article Copyright 2005 by Hatem Mostafa
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid