예제 #1
0
        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();
        }
예제 #2
0
        /// <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;
        }
예제 #3
0
 public static void Start()
 {
     thread = Threads.Create("Backup", BackupThreadRun, null);
     thread.Start();
 }
예제 #4
0
 ServerCommander()
 {
     thread = Threads.Create(this, Run, null);
 }