14 #ifndef CONNECTIONTCPBASE_H__
15 #define CONNECTIONTCPBASE_H__
18 #include "connectionbase.h"
61 const std::string& server,
int port = -1 );
69 virtual bool send(
const std::string& data );
75 virtual void disconnect();
78 virtual void cleanup();
81 virtual void getStatistics(
int &totalIn,
int &totalOut );
88 int socket()
const {
return m_socket; }
96 void setSocket(
int socket ) { m_cancel =
false; m_socket = socket; }
100 void init(
const std::string& server,
int port );
101 bool dataAvailable(
int timeout = -1 );
119 #endif // CONNECTIONTCPBASE_H__