14 #ifndef CONNECTIONHTTPPROXY_H__
15 #define CONNECTIONHTTPPROXY_H__
18 #include "connectionbase.h"
64 const std::string& server,
int port = -1 );
79 const std::string& server,
int port = -1 );
93 virtual bool send(
const std::string& data );
99 virtual void disconnect();
102 virtual void cleanup();
105 virtual void getStatistics(
int &totalIn,
int &totalOut );
108 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
125 void setServer(
const std::string& host,
int port = -1 )
126 { m_server = host; m_port = port; }
133 void setProxyAuth(
const std::string& user,
const std::string& password )
134 { m_proxyUser = user; m_proxyPassword = password; }
155 std::string m_proxyUser;
156 std::string m_proxyPassword;
157 std::string m_proxyHandshakeBuffer;
165 #endif // CONNECTIONHTTPPROXY_H__