@@ -10,7 +10,7 @@ namespace MLAPI
1010 public class NetworkingConfiguration
1111 {
1212 public ushort ProtocolVersion = 0 ;
13- public Dictionary < string , QosType > Channels = new Dictionary < string , QosType > ( ) ;
13+ public SortedDictionary < string , QosType > Channels = new SortedDictionary < string , QosType > ( ) ;
1414 public List < string > MessageTypes = new List < string > ( ) ;
1515 public int MessageBufferSize = 65535 ;
1616 public int MaxMessagesPerFrame = 150 ;
@@ -19,16 +19,16 @@ public class NetworkingConfiguration
1919 public string Address = "127.0.0.1" ;
2020 public int ClientConnectionBufferTimeout = 10 ;
2121 public bool ConnectionApproval = false ;
22- public Action < byte [ ] , int , Action < int , bool > > ConnectionApprovalCallback ;
23- public byte [ ] ConnectionData ;
22+ public Action < byte [ ] , int , Action < int , bool > > ConnectionApprovalCallback = null ;
23+ public byte [ ] ConnectionData = new byte [ 0 ] ;
2424 public bool HandleObjectSpawning = true ;
2525 //TODO
2626 public bool CompressMessages = false ;
2727 //Should only be used for dedicated servers and will require the servers RSA keypair being hard coded into clients in order to exchange a AES key
2828 //TODO
2929 public bool EncryptMessages = false ;
30- public bool UseUPnP = true ;
31- public Action < bool , IPAddress > UPnPCompleteCallback ;
30+ public bool UseUPnP = false ;
31+ public Action < bool , IPAddress > UPnPCompleteCallback = null ;
3232
3333 //Cached config hash
3434 private byte [ ] ConfigHash = null ;
0 commit comments