Photon C++ Client API
5.0.7.3
|
Provides transport for VoiceClient based on given LoadBalancing Client Creates and maintains VoiceClient More...
Public Member Functions | |
LoadBalancingTransport (LoadBalancing::Client &lbClient, Common::BaseListener &debugReturn, bool direct=false) | |
virtual void | logError (const Common::JString &msg) const |
virtual void | logWarning (const Common::JString &msg) const |
virtual void | logInfo (const Common::JString &msg) const |
virtual void | logDebug (const Common::JString &msg) const |
virtual bool | isChannelJoined (int channelId) |
virtual void | sendVoicesInfo (const Common::JVector< const LocalVoice * > &voices, int channelId, int targetPlayerId) |
virtual void | sendVoiceRemove (const LocalVoice &voice, int channelId, int targetPlayerId) |
virtual void | sendFrame (Buffer< nByte > data, nByte evNumber, nByte voiceId, int channelId, const LocalVoice &localVoice) |
virtual Common::JString | channelIdStr (int channelId) |
virtual Common::JString | playerIdStr (int playerId) |
virtual void | setDebugEchoMode (const LocalVoice &voice) |
nByte | getGlobalInterestGroup (void) const |
Set global audio group for this client. This call sets InterestGroup for existing local voices and for created later to given value. Client set as listening to this group only until LoadBalancingPeer.OpChangeGroups() called. This method can be called any time. More... | |
void | setGlobalInterestGroup (nByte) |
void | service (void) |
This method dispatches all available incoming commands and then sends this client's outgoing commands. Call this method regularly (2 to 20 times a second). More... | |
void | onCustomEvent (int playerNr, nByte eventCode, const Common::Object &eventContent) |
void | onDirectMessage (const Common::Object &msg, int playerNr, bool relay) |
void | onJoinRoom (void) |
void | onLeaveRoom (void) |
void | onPlayerJoinRoom (int playerNr) |
void | onPlayerLeaveRoom (int playerNr) |
virtual Common::JString & | toString (Common::JString &retStr, bool withTypes=false) const |
virtual JString & | toString (JString &retStr, bool withTypes=false) const=0 |
JString | toString (bool withTypes=false) const |
Public Member Functions inherited from LoggingBase< LoadBalancingTransport > | |
virtual | ~LoggingBase (void)=0 |
Public Member Functions inherited from ToString | |
virtual | ~ToString (void) |
virtual JString | typeToString (void) const |
JString | toString (bool withTypes=false) const |
Additional Inherited Members | |
Static Public Member Functions inherited from LoggingBase< LoadBalancingTransport > | |
static void | setListener (const BaseListener *pBaseListener) |
static int | getDebugOutputLevel (void) |
static bool | setDebugOutputLevel (int debugLevel) |
static const LogFormatOptions & | getLogFormatOptions (void) |
static void | setLogFormatOptions (const LogFormatOptions &options) |
Provides transport for VoiceClient based on given LoadBalancing Client Creates and maintains VoiceClient
nByte getGlobalInterestGroup | ( | void | ) | const |
Set global audio group for this client. This call sets InterestGroup for existing local voices and for created later to given value. Client set as listening to this group only until LoadBalancingPeer.OpChangeGroups() called. This method can be called any time.
LocalVoice.InterestGroup LoadBalancingPeer.OpChangeGroups(byte[], byte[])
void service | ( | void | ) |
This method dispatches all available incoming commands and then sends this client's outgoing commands. Call this method regularly (2 to 20 times a second).
|
virtual |
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
Implements ToString.
toString |
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
JString toString |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
withTypes | set to true, to include type information in the generated string |