Ejemplo n.º 1
0
 /// <summary>
 /// Gets all the connections in the specified connection list
 /// </summary>
 /// <param name="servers">If true returns the servers list, else returns the clients list</param>
 /// <param name="found">The output array of found connections</param>
 /// <returns>UDP_OK or error code</returns>
 private int GetConnections(bool servers, out Connection[] found)
 {
     if (!servers)
     {
         return(m_Clients.GetConnections(out found));
     }
     else
     {
         return(m_Servers.GetConnections(out found));
     }
 }