Created
September 20, 2012 14:43
-
-
Save barneywilliams/3756337 to your computer and use it in GitHub Desktop.
JSONSocket - Qt JSON receipt and parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Client::ProcessRequest(void) | |
{ | |
QByteArray request = tcpSocket->readAll(); | |
QScriptEngine engine; | |
// Validate that the request was parsed and non-empty | |
QScriptValue data = engine.evaluate("(" + QString(request) + ")"); | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment