public MessageManager(AISocket socket, int faction, World world, ReplayController repController)
 {
     this.socket        = socket;
     this.faction       = faction;
     this.world         = world;
     this.repController = repController;
 }
        void socketCallBack(IAsyncResult result)
        {
            if (listener == null)
            {
                return;
            }
            else
            {
                TcpClient connection = listener.EndAcceptTcpClient(result);

                connectNumber++;

                AISocket socket = new AISocket(connection, connectNumber, world, requestManager, repController);

                AISockets.Add(socket);
                //socket.start();
                lock (locker)
                {
                    listenStatu = false;
                }
            }
        }
Exemple #3
0
 public AIRequest(AISocket socket, string message)
 {
     requestMessage = message;
     this.socket    = socket;
 }