Exemple #1
0
 public void StopServer(bool graceful = false)
 {
     if (graceful)
     {
         connector.Stop();
         connector = null;
     }
     else
     {
         connector.Kill();
         connector = null;
     }
 }
Exemple #2
0
 public void Kill()
 {
     netConn.Kill();
 }
Exemple #3
0
 public void KillNetcore() => netConn.Kill();
Exemple #4
0
 public static void RestartClient()
 {
     connector.Kill();
     connector = null;
     StartClient();
 }
Exemple #5
0
 public static void RestartServer()
 {
     connector.Kill();
     connector = null;
     StartServer();
 }
Exemple #6
0
 public void KillClient()
 {
     connector?.Kill();
     connector = null;
 }