public void StopServer(bool graceful = false) { if (graceful) { connector.Stop(); connector = null; } else { connector.Kill(); connector = null; } }
public void Kill() { netConn.Kill(); }
public void KillNetcore() => netConn.Kill();
public static void RestartClient() { connector.Kill(); connector = null; StartClient(); }
public static void RestartServer() { connector.Kill(); connector = null; StartServer(); }
public void KillClient() { connector?.Kill(); connector = null; }