From 8ddb2c09f6cf2e3781ed660aa28f4e68aeeb4fc5 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 21:30:28 +0000 Subject: new sync protocol --- syncQueue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'syncQueue.cpp') diff --git a/syncQueue.cpp b/syncQueue.cpp index 7d3c35f..a24a4f5 100644 --- a/syncQueue.cpp +++ b/syncQueue.cpp @@ -47,7 +47,9 @@ void SyncQueue::push(const SyncCommand & scom ) oa << scom; Lock lock(mutex_); - queue_.push(sout.str()); + std::stringstream lengthout; + lengthout << std::setw(5) << std::setfill('0') << sout.str().size()<< ' '; + queue_.push(lengthout.str()+sout.str()); } void SyncQueue::push(const std::string & str ) -- cgit v1.2.3