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
// Request.cpp : implementation file
//

#include "stdafx.h"
#include "LiteProxyServer.h"

#include "Listener.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Listener struct


char *sAppProtocolTypes[] = 
{	"HTTP", 
	"SOCKS4", 
	"SOCKS5", 
	"SMTP Server", 
	"SMTP", 
	"POP3", 
	"FTP", 
	"NNTP", 
	"DNS", 
	"CHAT NS", 
	"",
	"FTP\\PASV",
	"FTP\\PORT",
	"CHAT\\SB", 
	NULL
};

char *sTransProtocolTypes[] = 
{	"TCP", 
	"UDP", 
	"ICMP", 
	"IGMP",
	NULL
};

Listener::Listener()
{
	pThread = NULL;
	nTransProtocol = TYPE_TCP;
}

Listener::~Listener()
{
	StopListen();
}

bool Listener::IsTemp()
{ 
	return nAppProtocol == TYPE_FTP_PASV 
		|| nAppProtocol == TYPE_FTP_PORT; 
}

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.140926.1 | Last Updated 10 Feb 2005
Article Copyright 2005 by Hatem Mostafa
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid