Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

How Proxy Server serves FTP clients?

, 10 Feb 2005
This article describes how Proxy Server deals with PORT and PASV FTP commands
proxyftp_demo.zip
LiteProxyServer.exe
proxyftp_src.zip
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
// Listener.h : header file
//

#ifndef __Listener_H__
#define __Listener_H__

/////////////////////////////////////////////////////////////////////////////
// CConnectionPropertyPage dialog
extern char *sAppProtocolTypes[];
extern char *sTransProtocolTypes[];

struct Listener
{
	Listener();
	~Listener();
	CWinThread* pThread;
	SOCKET socketServer;
	int nAppProtocol, nTransProtocol;
	int nPort;
	CString strUserID, strPwd;
	CString strNextServerIP;
	int nNextServerPort;
	enum ApplicationProtocol
	{
		TYPE_HTTP = 0,
		TYPE_SOCKS4 = 1,
		TYPE_SOCKS5 = 2,
		TYPE_SMTP_SERVER = 3,
		TYPE_SMTP = 4,
		TYPE_POP3 = 5,
		TYPE_FTP = 6,
		TYPE_NNTP = 7,
		TYPE_DNS = 8,
		TYPE_CHAT_NS = 9,
		TYPE_FTP_PASV = 11,
		TYPE_FTP_PORT = 12,
		TYPE_CHAT_SB = 13
	};
	enum TransportProtocol
	{
		TYPE_TCP = 0,
		TYPE_UDP = 1,
		TYPE_ICMP = 2,
		TYPE_IGMP = 3
	};

	void StartListen();
	void StopListen();
	bool IsStarted()	{	return pThread != NULL;	}
	bool IsStoped()	{	return pThread == NULL;	}
	bool IsTemp();
};


#endif // __Listener_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


| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 10 Feb 2005
Article Copyright 2005 by Hatem Mostafa
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid