Schema checking for all commands added

This commit is contained in:
johan
2013-08-18 12:02:17 +02:00
parent b66c397a46
commit 46076998a0
12 changed files with 231 additions and 67 deletions

View File

@@ -37,11 +37,11 @@ uint16_t JsonServer::getPort() const
void JsonServer::newConnection()
{
std::cout << "New incoming json connection" << std::endl;
QTcpSocket * socket = _server.nextPendingConnection();
if (socket != nullptr)
{
std::cout << "New json connection" << std::endl;
JsonClientConnection * connection = new JsonClientConnection(socket);
_openConnections.insert(connection);