示例#1
0
        public void Start()
        {
            TcpListener listener = new TcpListener(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 4000));
            listener.Start();

            while (_acceptNewConnections)
            {
                TcpClient client = listener.AcceptTcpClient();

                MudSession session = new MudSession(client);
            }
        }
示例#2
0
        public void Start()
        {
            TcpListener listener = new TcpListener(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 4000));

            listener.Start();

            while (_acceptNewConnections)
            {
                TcpClient client = listener.AcceptTcpClient();

                MudSession session = new MudSession(client);
            }
        }