|
virtual void | receiveJSON (picojson::value &val) |
| Receives a JSON message from the client. More...
|
|
virtual void | sendJSON (picojson::value &val) |
| Sends a JSON message to the client. More...
|
|
void | receiveMessage (const std::string &msg) |
| Receives a message from the client and parses it as JSON. More...
|
|
| Session () |
| Constructor for Session.
|
|
virtual | ~Session () |
| Destructor.
|
|
virtual int | getId () const |
| Returns the ID of the session.
|
|
virtual void | sendMessage (const std::string &msg) |
| Sends a message to the client. More...
|
|
virtual void | update () |
| Performs any necessary updates for the session.
|
|
virtual void | onWrite () |
| Function called when the session is ready to write.
|
|
Abstract class for a session supporting JSON communication.