15 #ifndef CONNECTIONBASE_H__
16 #define CONNECTIONBASE_H__
19 #include "connectiondatahandler.h"
71 virtual bool send(
const std::string& data ) = 0;
83 virtual void disconnect() = 0;
109 void setServer(
const std::string &server,
int port = -1 ) { m_server = server; m_port = port; }
115 const std::string&
server()
const {
return m_server; }
122 virtual void getStatistics(
int &totalIn,
int &totalOut ) = 0;
135 std::string m_server;
142 #endif // CONNECTIONBASE_H__