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__
An abstract base class for a connection.
This is an abstract base class to receive events from a ConnectionBase-derived object.
The namespace for the gloox library.
void setHTTP11(bool http11)
This is an implementation of a simple HTTP Proxying connection.
An implementation of log sink and source.
void setProxyAuth(const std::string &user, const std::string &password)
void setServer(const std::string &host, int port=-1)