summaryrefslogtreecommitdiff
path: root/src/syncClient.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-12-21 20:12:05 +0000
committerOthmar Gsenger <otti@anytun.org>2008-12-21 20:12:05 +0000
commitad6380fbfd67d618f1dcdbc3e2fd57d98e4a5c46 (patch)
treead7dd3313c6ec8bba27f9dcabe6922fb2f4a3639 /src/syncClient.h
parentremoved wrong logmessage from anytun-config (diff)
rewrote syncClient and anytun-showtables
Diffstat (limited to 'src/syncClient.h')
-rw-r--r--src/syncClient.h10
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_;
};