diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-12-21 20:12:05 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-12-21 20:12:05 +0000 |
commit | ad6380fbfd67d618f1dcdbc3e2fd57d98e4a5c46 (patch) | |
tree | ad7dd3313c6ec8bba27f9dcabe6922fb2f4a3639 /src/syncClient.h | |
parent | removed wrong logmessage from anytun-config (diff) |
rewrote syncClient and anytun-showtables
Diffstat (limited to 'src/syncClient.h')
-rw-r--r-- | src/syncClient.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/syncClient.h b/src/syncClient.h index 0714e9b..26c946f 100644 --- a/src/syncClient.h +++ b/src/syncClient.h @@ -36,8 +36,8 @@ #include <sstream> #include <iostream> #include <string> -#include <boost/asio.hpp> - +//#include <boost/asio.hpp> +#include "syncTcpConnection.h" class SyncClient { public: @@ -45,12 +45,10 @@ public: void run(); private: - void OnRawData(const char *buf,size_t len); + void readAndProcess(SyncTcpConnection::proto::socket & socket); + void readExactly(SyncTcpConnection::proto::socket & socket,size_t toread, std::iostream &); std::string hostname_; std::string port_; - std::stringstream iss_; - int32_t missing_chars; - int32_t buffer_size_; }; |