Пример #1
0
        public void StartServer()
        {
            mCurrentSocketId = 0;
            mGameSessions    = new List <GameSession>();

            mServer = new AsyncServer(this, 1000, 1024);

            // Establish the local endpoint for the socket
            IPAddress  ipAddress     = IPAddress.Parse("0.0.0.0");
            IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 1025);

            mServer.Start(localEndPoint);
        }
Пример #2
0
        public void StartServer()
        {
            mCurrentSocketId = 0;
            mGameSessions = new List<GameSession>();

            mServer = new AsyncServer(this, 1000, 1024);

            // Establish the local endpoint for the socket
            IPAddress ipAddress = IPAddress.Parse("0.0.0.0");
            IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 1025);

            mServer.Start(localEndPoint);
        }