Photon Voice v2.53

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LoadBalancingTransport2 Class Reference

Variant of LoadBalancingTransport. Aims to be non-alloc at the cost of breaking compatibility with older clients. More...

Inherits LoadBalancingTransport.

Public Member Functions

 LoadBalancingTransport2 (ILogger logger=null, ConnectionProtocol connectionProtocol=ConnectionProtocol.Udp, bool cppCompatibilityMode=false)
 
override int GetPayloadFragmentSize (SendFrameParams par)
 
- Public Member Functions inherited from LoadBalancingTransport
void LogError (string fmt, params object[] args)
 
void LogWarning (string fmt, params object[] args)
 
void LogInfo (string fmt, params object[] args)
 
void LogDebug (string fmt, params object[] args)
 
bool IsChannelJoined (int channelId)
 
 LoadBalancingTransport (ILogger logger=null, ConnectionProtocol connectionProtocol=ConnectionProtocol.Udp, bool cppCompatibilityMode=false)
 Initializes a new LoadBalancingTransport. More...
 
new void Service ()
 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...
 
virtual bool ChangeAudioGroups (byte[] groupsToRemove, byte[] groupsToAdd)
 
void SendVoiceInfo (LocalVoice voice, int channelId, bool targetMe, int[] targetPlayers)
 
void SendVoiceRemove (LocalVoice voice, int channelId, bool targetMe, int[] targetPlayers)
 
void SendFrame (ArraySegment< byte > data, FrameFlags flags, byte evNumber, byte frNumber, byte voiceId, int channelId, SendFrameParams par)
 
string ChannelIdStr (int channelId)
 
string PlayerIdStr (int playerId)
 
void Dispose ()
 Releases all resources used by the LoadBalancingTransport instance. More...
 

Protected Member Functions

override object buildFrameMessage (byte voiceId, byte evNumber, byte frNumber, ArraySegment< byte > data, FrameFlags flags)
 
override void onEventActionVoiceClient (EventData ev)
 

Protected Attributes

override byte FrameCode => VoiceEvent.FrameCode
 
- Protected Attributes inherited from LoadBalancingTransport
VoiceClient voiceClient
 
readonly bool cppCompatibilityMode
 
virtual byte FrameCode => VoiceEvent.Code
 

Additional Inherited Members

- Properties inherited from LoadBalancingTransport
VoiceClient VoiceClient [get]
 The VoiceClient implementation associated with this LoadBalancingTransport. More...
 

Detailed Description

Variant of LoadBalancingTransport. Aims to be non-alloc at the cost of breaking compatibility with older clients.