UnityEngine.Networking.NetworkConnection.FlushChannels C# (CSharp) Method

FlushChannels() public method

This causes the channels of the network connection to flush their data to the transport layer.

public FlushChannels ( ) : void
return void
        public void FlushChannels()
        {
            if (this.m_Channels != null)
            {
                for (int i = 0; i < this.m_Channels.Length; i++)
                {
                    this.m_Channels[i].CheckInternalBuffer();
                }
            }
        }

Usage Example

コード例 #1
0
 // this can be used independantly of Update() - such as when using external connections and not listening.
 public void UpdateConnections()
 {
     for (int i = 0; i < m_Connections.Count; i++)
     {
         NetworkConnection conn = m_Connections[i];
         if (conn != null)
         {
             conn.FlushChannels();
         }
     }
 }
All Usage Examples Of UnityEngine.Networking.NetworkConnection::FlushChannels