Ejemplo n.º 1
0
 /// <summary>
 ///     Creates a Network Listener that can be started with .Start
 /// </summary>
 /// <param name="refreshMillis">Main Loop Delay</param>
 /// <param name="config">Path to NetworkConfig file</param>
 /// <param name="multiThread">flag to enable multithreading</param>
 /// <param name="noUpdateCheck">flag to disable checking for updates</param>
 public NetworkListener(int refreshMillis, string config = "", bool multiThread = true,
                        bool noUpdateCheck = false)
 {
     _noUpdateCheck = noUpdateCheck;
     LoadConfig(NetworkServerConfig.Load(config));
     _multiThread    = multiThread;
     RefreshMillis   = refreshMillis;
     DebugNetworking = false;
 }