summaryrefslogtreecommitdiff
path: root/syncClientSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 20:53:50 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 20:53:50 +0000
commitf63e7fe64401bcd46e5b12bca2c861e0d8e0ce11 (patch)
tree1d7817d5588f75abcf6c09a7345cff1a8a33464e /syncClientSocket.cpp
parentadded file parameter to anymux (diff)
ll
Diffstat (limited to 'syncClientSocket.cpp')
-rw-r--r--syncClientSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp
index 34a23f0..09faeda 100644
--- a/syncClientSocket.cpp
+++ b/syncClientSocket.cpp
@@ -14,7 +14,7 @@
SyncClientSocket::SyncClientSocket(ISocketHandler& h,ConnectionList & cl)
-:TcpSocket(h),cl_(cl)
+:TcpSocket(h),cl_(cl),missing_chars(0)
{
// initial connection timeout setting and number of retries
SetConnectTimeout(12);
@@ -49,7 +49,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len)
iss_ << buf[index];
}
- while(!iss_.eof() && !iss_.fail())
+ while(iss_.good())
{
boost::archive::text_iarchive ia(iss_);
SyncCommand scom(cl_);