- ConnectionList & cl_ (gConnectionList);
- size_t message_lenght ;
- for (;;)
- {
- std::stringstream message_lenght_stream;
- readExactly(socket,5,message_lenght_stream);
- message_lenght_stream >> message_lenght;
- std::stringstream void_stream;
- readExactly(socket,1,void_stream); //skip space
- std::stringstream sync_command_stream;
- readExactly(socket,message_lenght, sync_command_stream);
- //cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion "<<tmp.str()<< std::endl;
- boost::archive::text_iarchive ia(sync_command_stream);
- SyncCommand scom(cl_);
- ia >> scom;
- }
+ ConnectionList& cl_(gConnectionList);
+ size_t message_lenght ;
+ for(;;) {
+ std::stringstream message_lenght_stream;
+ readExactly(socket,5,message_lenght_stream);
+ message_lenght_stream >> message_lenght;
+ std::stringstream void_stream;
+ readExactly(socket,1,void_stream); //skip space
+ std::stringstream sync_command_stream;
+ readExactly(socket,message_lenght, sync_command_stream);
+ //cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion "<<tmp.str()<< std::endl;
+ boost::archive::text_iarchive ia(sync_command_stream);
+ SyncCommand scom(cl_);
+ ia >> scom;
+ }