Photon C++ Client API: ExitGames::Photon::ConnectionProtocol Namespace Reference

Photon C++ Client API

Photon C++ Client API  4.1.12.2
ExitGames::Photon::ConnectionProtocol Namespace Reference

Functions

bool getIsUDP (nByte connectionProtocol)
 
bool getIsTCP (nByte connectionProtocol)
 
bool getIsWebSocket (nByte connectionProtocol)
 
bool getIsSecure (nByte connectionProtocol)
 

Variables

static const nByte UDP
 Use UDP to connect to Photon, which allows you to send operations reliable or unreliable on demand.
 
static const nByte TCP
 Use TCP to connect to Photon.
 
static const nByte WS
 Use websockets to connect to Photon.
 
static const nByte WSS
 Use secure websockets to connect to Photon.
 
static const nByte DEFAULT
 

Detailed Description

These are the options that can be used as underlying transport protocol.

ConnectionProtocol

Function Documentation

§ getIsUDP()

bool getIsUDP ( nByte  connectionProtocol)
Parameters
connectionProtocolone of the constants in ConnectionProtocol
Returns
true if the passed in value matches ConnectionProtocol::UDP, false otherwise.

§ getIsTCP()

bool getIsTCP ( nByte  connectionProtocol)
Parameters
connectionProtocolone of the constants in ConnectionProtocol
Returns
true if the passed in value matches ConnectionProtocol::TCP, false otherwise.

§ getIsWebSocket()

bool getIsWebSocket ( nByte  connectionProtocol)
Parameters
connectionProtocolone of the constants in ConnectionProtocol
Returns
true if the passed in value matches either ConnectionProtocol::WS or ConnectionProtocol::WSS, false otherwise.

§ getIsSecure()

bool getIsSecure ( nByte  connectionProtocol)
Parameters
connectionProtocolone of the constants in ConnectionProtocol
Returns
true if the passed in value matches a connection protocol that uses secure sockets (like HTTPS or WSS), false otherwise.