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; }
121 int port()
const {
return m_port; }
140 virtual void getStatistics(
long int &totalIn,
long int &totalOut ) = 0;
167 #endif // CONNECTIONBASE_H__