NAP
Public Member Functions | Public Attributes | List of all members
WebSocketConnectionFailedEvent Class Reference

#include <websocketevent.h>

Public Member Functions

 WebSocketConnectionFailedEvent (const WebSocketConnection &connection, int errorCode, const std::string &reason)
 
 WebSocketConnectionFailedEvent (const WebSocketConnection &connection, int errorCode, std::string &&reason)
 
- Public Member Functions inherited from WebSocketConnectionEvent
 WebSocketConnectionEvent (const WebSocketConnection &connection)
 
- Public Member Functions inherited from Event
virtual ~Event ()=default
 
 Event ()=default
 
 Event (const Event &)=delete
 
Eventoperator= (const Event &)=delete
 

Public Attributes

int mErrorCode = -1
 Error code associated with reason for failing to establish connection. More...
 
std::string mReason
 Reason for failing to establish connection. More...
 
- Public Attributes inherited from WebSocketConnectionEvent
WebSocketConnection mConnection
 

Description

Occurs when a connection failed to open. Contains the error code and reason for failure. Note that the connection itself is invalided when this event is received.

Inheritance diagram for WebSocketConnectionFailedEvent:
[legend]
Collaboration diagram for WebSocketConnectionFailedEvent:
[legend]

Constructor & Destructor Documentation

◆ WebSocketConnectionFailedEvent() [1/2]

WebSocketConnectionFailedEvent ( const WebSocketConnection connection,
int  errorCode,
const std::string &  reason 
)

◆ WebSocketConnectionFailedEvent() [2/2]

WebSocketConnectionFailedEvent ( const WebSocketConnection connection,
int  errorCode,
std::string &&  reason 
)

Member Data Documentation

◆ mErrorCode

int mErrorCode = -1

Error code associated with reason for failing to establish connection.

◆ mReason

std::string mReason

Reason for failing to establish connection.