Merge branch 'master' of https://github.com/swinginbird/flippr-code
This commit is contained in:
@@ -40,7 +40,10 @@ void InputSocketHandler::run()
|
||||
|
||||
std::string str = event.getJsonString();
|
||||
|
||||
this->socket().sendBytes(str.c_str(), str.length());
|
||||
auto size = str.size();
|
||||
str = std::to_string(size) + std::to_string(0x02) + str;
|
||||
|
||||
this->socket().sendBytes(str.c_str(), str.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user