Esempio n. 1
0
 /// <summary>
 /// Sends all unsent messages for all connections; may interfere with proper throttling!
 /// </summary>
 public void FlushMessages()
 {
     for (int i = 0; i < Connections.Length; i++)
     {
         NetConnection connection = Connections[i];
         if (connection != null && connection.Status != NetConnectionStatus.Disconnected)
         {
             connection.SendUnsentMessages(true, 0.01f);
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Sends all unsent messages; may interfere with proper throttling
 /// </summary>
 public void FlushMessages()
 {
     m_serverConnection.SendUnsentMessages(true, 0.01f);
 }