summaryrefslogtreecommitdiff
path: root/syncQueue.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 21:30:28 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 21:30:28 +0000
commit8ddb2c09f6cf2e3781ed660aa28f4e68aeeb4fc5 (patch)
tree7566f560540433674070fe810476a1497c0842ee /syncQueue.cpp
parentremoved dummy file (diff)
new sync protocol
Diffstat (limited to 'syncQueue.cpp')
-rw-r--r--syncQueue.cpp4
1 files changed, 3 insertions, 1 deletions
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 )