public static void Start(int controlPort) { if (thread != null) { throw new InvalidOperationException("ContorlListener already started"); } port = controlPort; thread = Threads.Create("Controller Listener", Run, null); thread.Start(); }
/// <summary> /// Custom client base /// </summary> protected Client(Socket socket, Stream client) : this() { this.socket = socket; RemoteEndPoint = socket.RemoteEndPoint as IPEndPoint; //LocalPort = (socket.LocalEndPoint as IPEndPoint).Port; Country = GeoIP.Lookup(RemoteEndPoint.Address); clientThread = Threads.Create(this, ReceiverRunClientWrapper, WatchdogKilled); Phase = Phases.Handshake; SetWorld(World.Void); this.clientStream = client; }
public static void Start() { thread = Threads.Create("Backup", BackupThreadRun, null); thread.Start(); }
ServerCommander() { thread = Threads.Create(this, Run, null); }