WebRTC Video Chat 1.1.4
Loading...
Searching...
No Matches
Byn.Awrtc.IWebRtcNetwork Interface Reference

This will allow more detailed access to webrtc for different platforms. Not yet implemented. More...

Inheritance diagram for Byn.Awrtc.IWebRtcNetwork:
Byn.Awrtc.IBasicNetwork Byn.Awrtc.INetwork Byn.Awrtc.IMediaNetwork

Public Member Functions

int GetBufferedAmount (ConnectionId id, bool reliable)
 Still experimental. Only supported for Native platforms so far.
 
- Public Member Functions inherited from Byn.Awrtc.IBasicNetwork
void StartServer (string address=null)
 Starts a server + asking for it to have a certain address. The use of the address is not guaranteed. If the address is in use the underlying system will return ServerConnectionFailed. (This can also be triggered if anything else fails in the process)
 
void StopServer ()
 Stops incoming connections. This usually doesn't close existing connections thus can be used to enforce a certain amount of maximum allowed connections.
 
ConnectionId Connect (string address)
 Connects to a given address or room name.
 
- Public Member Functions inherited from Byn.Awrtc.INetwork
bool Dequeue (out NetworkEvent evt)
 This will return the incoming network events. Call this method and handle the incoming events until it returns false.
 
bool Peek (out NetworkEvent evt)
 Will return the first event in the queue without removing it.
 
void Flush ()
 Sends buffered data.
 
bool SendData (ConnectionId id, byte[] data, int offset, int length, bool reliable)
 Sends the content of a byte array to the given connection.
 
void Disconnect (ConnectionId id)
 Disconnects the given connection.
 
void Shutdown ()
 Disconnects all connection and shuts down the server if started. Dequeue will still return the confirmation messages such as Disconnected event for each connection.
 
void Update ()
 Call this every frame if you intend to read incoming messages using Dequeue. This will make sure all data is read received by the network.
 

Detailed Description

This will allow more detailed access to webrtc for different platforms. Not yet implemented.

Member Function Documentation

◆ GetBufferedAmount()

int Byn.Awrtc.IWebRtcNetwork.GetBufferedAmount ( ConnectionId id,
bool reliable )

Still experimental. Only supported for Native platforms so far.

Parameters
id
reliable
Returns

The documentation for this interface was generated from the following file: