From 2dd4b9e3a34c3c94fd475de7472e7244e83a48fa Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 20:33:46 +0000 Subject: sync fixes --- syncClientSocket.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'syncClientSocket.cpp') diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index 734ff6e..40954c4 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -42,17 +42,19 @@ void SyncClientSocket::OnReconnect() void SyncClientSocket::OnRawData(const char *buf,size_t len) //void SyncClientSocket::OnLine(const std::string& line) { - std::stringstream iss; cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion from " << GetRemoteHostname() << std::endl; for(size_t index=0;index> scom; + while(!iss_.fail()) + { + boost::archive::text_iarchive ia(iss_); + SyncCommand scom(cl_); + ia >> scom; + } //u_int16_t mux = scom.getMux(); //const ConnectionParam & conn = cl_.getConnection(mux)->second; //cLog.msg(Log::PRIO_NOTICE) << "sync connection #"<