ofxHTTP
A collection of tools for HTTP.
ofx::HTTP::WebSocketEventArgs Class Reference

The base WebSocket event arguments. More...

#include <WebSocketEvents.h>

Inheritance diagram for ofx::HTTP::WebSocketEventArgs:
ofx::HTTP::ServerEventArgs ofx::HTTP::WebSocketCloseEventArgs ofx::HTTP::WebSocketErrorEventArgs ofx::HTTP::WebSocketFrameEventArgs

Public Member Functions

 WebSocketEventArgs (ServerEventArgs &args, WebSocketConnection &connection)
 Create a WebSocketEventArgs object with the provided params. More...
 
WebSocketConnectionconnection ()
 
- Public Member Functions inherited from ofx::HTTP::ServerEventArgs
 ServerEventArgs (Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response, AbstractSession &session)
 Construct the ServerEventArgs. More...
 
virtual ~ServerEventArgs ()
 Destroy the ServerEventArgs.
 
Poco::Net::HTTPServerRequest & request ()
 Get the Poco::Net::HTTPServerRequest. More...
 
Poco::Net::HTTPServerResponse & response ()
 Get the Poco::Net::HTTPServerResponse. More...
 
AbstractSessionsession ()
 Get the session associated with this event. More...
 

Additional Inherited Members

- Protected Attributes inherited from ofx::HTTP::ServerEventArgs
Poco::Net::HTTPServerRequest & _request
 A reference to the server request.
 
Poco::Net::HTTPServerResponse & _response
 Callbacks are permitted to set the response. More...
 
AbstractSession_session
 The session associated with the event.
 

Detailed Description

The base WebSocket event arguments.

Constructor & Destructor Documentation

◆ WebSocketEventArgs()

ofx::HTTP::WebSocketEventArgs::WebSocketEventArgs ( ServerEventArgs args,
WebSocketConnection connection 
)
inline

Create a WebSocketEventArgs object with the provided params.

Parameters
argsThe server event arguments.
connectionA reference to the associated WebSocketConnection.

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