Photon C++ Client API  5.0.7.3
Public Member Functions | List of all members
Peer Class Reference
Inheritance diagram for Peer:
Inheritance graph
[legend]
Collaboration diagram for Peer:
Collaboration graph
[legend]

Public Member Functions

 Peer (Photon::PhotonListener &listener, nByte connectionProtocol=Photon::ConnectionProtocol::DEFAULT, nByte serializationProtocol=Common::SerializationProtocol::DEFAULT)
 
virtual bool opAuthenticateOnNameServer (const Common::JString &appID, const Common::JString &appVersion, const Common::JString &region, const AuthenticationValues &authenticationValues=AuthenticationValues())
 
virtual bool opAuthenticateOnFrontEnd (const Common::JString &secret)
 
virtual bool opSubscribe (const Common::JVector< Common::JString > &channels, int messagesFromHistory)
 
virtual bool opUnsubscribe (const Common::JVector< Common::JString > &channels)
 
template<typename Ftype >
bool opPublishMessage (const Common::JString &channelName, const Ftype &message)
 
template<typename Ftype >
bool opPublishMessage (const Common::JString &channelName, const Ftype pMessageArray, int arrSize)
 
template<typename Ftype >
bool opPublishMessage (const Common::JString &channelName, const Ftype pMessageArray, const int *pArrSizes)
 
template<typename Ftype >
bool opSendPrivateMessage (const Common::JString &userName, const Ftype &message, bool encrypt=false)
 
template<typename Ftype >
bool opSendPrivateMessage (const Common::JString &userName, const Ftype pMessageArray, int arrSize, bool encrypt=false)
 
template<typename Ftype >
bool opSendPrivateMessage (const Common::JString &userName, const Ftype pMessageArray, const int *pArrSizes, bool encrypt=false)
 
virtual bool opSetOnlineStatus (int status)
 
template<typename Ftype >
bool opSetOnlineStatus (int status, const Ftype &message)
 
template<typename Ftype >
bool opSetOnlineStatus (int status, const Ftype pMessageArray, int arrSize)
 
template<typename Ftype >
bool opSetOnlineStatus (int status, const Ftype pMessageArray, const int *pArrSizes)
 
virtual bool opAddFriends (const Common::JVector< Common::JString > &userIDs)
 
virtual bool opRemoveFriends (const Common::JVector< Common::JString > &userIDs)
 
- Public Member Functions inherited from PhotonPeer
 PhotonPeer (PhotonListener &listener, nByte connectionProtocol=ConnectionProtocol::DEFAULT, nByte serializationProtocol=Common::SerializationProtocol::DEFAULT)
 
virtual ~PhotonPeer (void)
 
virtual bool connect (const Common::JString &ipAddr, const Common::JString &appID=Common::JString())
 
template<typename Ftype >
bool connect (const Common::JString &ipAddr, const Common::JString &appID, const Ftype &customData)
 
template<typename Ftype >
bool connect (const Common::JString &ipAddr, const Common::JString &appID, const Ftype pCustomDataArray, int arrSize)
 
template<typename Ftype >
bool connect (const Common::JString &ipAddr, const Common::JString &appID, const Ftype pCustomDataArray, const int *pArrSizes)
 
virtual void disconnect (void)
 
virtual void service (bool dispatchIncomingCommands=true)
 
virtual void serviceBasic (void)
 
virtual bool opCustom (const OperationRequest &operationRequest, bool sendReliable, nByte channelID=0, bool encrypt=false)
 
virtual bool sendOutgoingCommands (void)
 
virtual bool sendAcksOnly (void)
 
virtual bool dispatchIncomingCommands (void)
 
virtual bool establishEncryption (void)
 
virtual void fetchServerTimestamp (void)
 
virtual void resetTrafficStats (void)
 
virtual void resetTrafficStatsMaximumCounters (void)
 
virtual Common::JString vitalStatsToString (bool all) const
 
virtual void pingServer (const Common::JString &address, unsigned int pingAttempts)
 
virtual void initUserDataEncryption (const Common::JVector< nByte > &secret)
 
virtual void initUDPEncryption (const Common::JVector< nByte > &encryptSecret)
 
PhotonListenergetListener (void)
 
int getServerTimeOffset (void) const
 
int getServerTime (void) const
 
int getBytesOut (void) const
 
int getBytesIn (void) const
 
int getByteCountCurrentDispatch (void) const
 
int getByteCountLastOperation (void) const
 
int getPeerState (void) const
 
int getSentCountAllowance (void) const
 
void setSentCountAllowance (int sentCountAllowance)
 
int getTimePingInterval (void) const
 
void setTimePingInterval (int timePingInterval)
 
int getRoundTripTime (void) const
 
int getRoundTripTimeVariance (void) const
 
int getTimestampOfLastSocketReceive (void) const
 
int getDebugOutputLevel (void) const
 
bool setDebugOutputLevel (int debugLevel)
 
const Common::LogFormatOptionsgetLogFormatOptions (void) const
 
void setLogFormatOptions (const Common::LogFormatOptions &formatOptions)
 
int getIncomingReliableCommandsCount (void) const
 
short getPeerID (void) const
 
int getDisconnectTimeout (void) const
 
void setDisconnectTimeout (int disconnectTimeout)
 
int getQueuedIncomingCommands (void) const
 
int getQueuedOutgoingCommands (void) const
 
Common::JString getServerAddress (void) const
 
bool getIsPayloadEncryptionAvailable (void) const
 
bool getIsEncryptionAvailable (void) const
 
int getResentReliableCommands (void) const
 
int getLimitOfUnreliableCommands (void) const
 
void setLimitOfUnreliableCommands (int value)
 
bool getCRCEnabled (void) const
 
void setCRCEnabled (bool crcEnabled)
 
int getPacketLossByCRC (void) const
 
bool getTrafficStatsEnabled (void) const
 
void setTrafficStatsEnabled (bool trafficStasEnabled)
 
int getTrafficStatsElapsedMs (void) const
 
const TrafficStatsgetTrafficStatsIncoming (void) const
 
const TrafficStatsgetTrafficStatsOutgoing (void) const
 
const TrafficStatsGameLevelgetTrafficStatsGameLevel (void) const
 
nByte getQuickResendAttempts (void) const
 
void setQuickResendAttempts (nByte quickResendAttempts)
 
nByte getConnectionProtocol (void) const
 
void setConnectionProtocol (nByte connectionProtocol)
 
nByte getChannelCountUserChannels (void) const
 
nByte getSerializationProtocol (void) const
 

Additional Inherited Members

- Static Public Member Functions inherited from PhotonPeer
static short getPeerCount (void)
 
static unsigned int getMaxAppIDLength (void)