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); }
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); }