14 #ifndef CONNECTIONHTTPPROXY_H__
15 #define CONNECTIONHTTPPROXY_H__
18 #include "connectionbase.h"
70 const std::string& server,
int port = -1 );
85 const std::string& server,
int port = -1 );
99 virtual bool send(
const std::string& data );
105 virtual void disconnect();
108 virtual void cleanup();
111 virtual void getStatistics(
long int &totalIn,
long int &totalOut );
114 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
131 void setServer(
const std::string& host,
int port = -1 )
132 { m_server = host; m_port = port; }
139 void setProxyAuth(
const std::string& user,
const std::string& password )
140 { m_proxyUser = user; m_proxyPwd = password; }
161 std::string m_proxyUser;
162 std::string m_proxyPwd;
163 std::string m_proxyHandshakeBuffer;
171 #endif // CONNECTIONHTTPPROXY_H__