Example #1
0
        /// <summary>
        /// This method sends the response of the request command
        /// </summary>
        /// <param name="ResponseCommand"></param>
        public void sendResponseCommand(Command ResponseCommand)
        {
            CommandFactory cmdFactory = new CommandFactory();

            //To be sure that cmd is really marked..
            ResponseCommand = cmdFactory.markAllSpecialCharacters(ResponseCommand);
            this.server.Server.Send(Encoding.ASCII.GetBytes(ResponseCommand.toString()));
        }
Example #2
0
 /// <summary>
 /// This method sends the response of the request command
 /// </summary>
 /// <param name="ResponseCommand"></param>
 public void sendResponseCommand(Command ResponseCommand)
 {
     CommandFactory cmdFactory = new CommandFactory();
     //To be sure that cmd is really marked..
     ResponseCommand = cmdFactory.markAllSpecialCharacters(ResponseCommand);
     this.server.Server.Send(Encoding.ASCII.GetBytes(ResponseCommand.toString()));
 }