CSCI3081W Drone Delivery System
|
Represents a session with a client. More...
#include <WebServer.h>
Public Member Functions | |
Session () | |
Constructor for Session. | |
virtual | ~Session () |
Destructor. | |
virtual int | getId () const |
Returns the ID of the session. | |
virtual void | receiveMessage (const std::string &msg) |
Receives a message from the client. More... | |
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. | |
Friends | |
class | WebServerBase |
Represents a session with a client.
|
inlinevirtual |
Receives a message from the client.
msg | The message received from the client |
Reimplemented in JSONSession.
|
virtual |
Sends a message to the client.
msg | The message to send to the client |