CSCI3081W Drone Delivery System
Public Member Functions | Friends | List of all members
WebServerBase::Session Class Reference

Represents a session with a client. More...

#include <WebServer.h>

Inheritance diagram for WebServerBase::Session:
Inheritance graph
[legend]

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
 

Detailed Description

Represents a session with a client.

Member Function Documentation

◆ receiveMessage()

virtual void WebServerBase::Session::receiveMessage ( const std::string &  msg)
inlinevirtual

Receives a message from the client.

Parameters
msgThe message received from the client

Reimplemented in JSONSession.

◆ sendMessage()

virtual void WebServerBase::Session::sendMessage ( const std::string &  msg)
virtual

Sends a message to the client.

Parameters
msgThe message to send to the client

The documentation for this class was generated from the following file: