|
// 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.