Beispiel #1
0
        public static void parse(Socket IncomingSocket)
        {
            uint Id = mCounter++;

            IncomingSocket.Blocking = false;
            Output.WriteLine("Started Command client " + Id + ".", OutputLevel.DebugInformation);

            CommandListener mus = new CommandListener(Id);
            mus.mBuffer = new byte[512];
            mus.mSocket = IncomingSocket;
            //mus.SendData("Welcome. For not being disconnected after a command type human.\r\n");
            mus.BeginReceive();

            mSessions.Add(Id,mus);
        }
Beispiel #2
0
        public static void parse(Socket IncomingSocket)
        {
            uint Id = mCounter++;

            IncomingSocket.Blocking = false;
            Output.WriteLine("Started Command client " + Id + ".", OutputLevel.DebugInformation);

            CommandListener mus = new CommandListener(Id);

            mus.mBuffer = new byte[512];
            mus.mSocket = IncomingSocket;
            //mus.SendData("Welcome. For not being disconnected after a command type human.\r\n");
            mus.BeginReceive();

            mSessions.Add(Id, mus);
        }