コード例 #1
0
 /// <summary>
 /// Sets the maximum number of incoming connections allowed.
 /// If the number of incoming connections is less than the number of players currently connected, no more players will be allowed to connect.
 /// If this is greater than the maximum number of peers allowed, it will be reduced to the maximum number of peers allowed.
 /// Defaults to 0, meaning by default, nobody can connect to you
 /// </summary>
 public void SetMaxConnections(ushort max_connections)
 {
     peer.SetMaxConnections(max_connections);
 }