Stats module

This commit is contained in:
Henrique Santiago
2012-08-22 05:51:31 -03:00
parent c50e186fa7
commit 05fcf740b4
13 changed files with 284 additions and 10 deletions

View File

@@ -54,6 +54,7 @@ public:
void write(uint8* buffer, uint16 size);
void read(uint16 bytes, const RecvCallback& callback);
void read_until(const std::string& what, const RecvCallback& callback);
void read_some(const RecvCallback& callback);
void setErrorCallback(const ErrorCallback& errorCallback) { m_errorCallback = errorCallback; }
@@ -81,7 +82,7 @@ protected:
asio::ip::tcp::socket m_socket;
uint8 m_sendBuffer[SEND_BUFFER_SIZE];
uint8 m_recvBuffer[RECV_BUFFER_SIZE];
asio::streambuf m_streamBuffer;
bool m_connected;
bool m_connecting;
boost::system::error_code m_error;