Beispiel #1
0
        public static void SendMessageAccepted()
        {
            var commandHeader = new CommandHeader {
                Count = 1,
                Type  = (int)CommandTypeEnum.MessageAccepted
            };

            SendAnswer(IP, Port, commandHeader.ToBytes());
        }
Beispiel #2
0
        public static void SendClearLogDataGrid()
        {
            var commandHeader = new CommandHeader
            {
                Count = 1,
                Type  = (int)CommandTypeEnum.ClearLogDataGrid
            };

            SendAnswer(IP, Port, commandHeader.ToBytes());
        }
Beispiel #3
0
        public static void SendQueryCommand(QueryCommand queryCommand)
        {
            var commandHeader = new CommandHeader
            {
                Count = 1,
                Type  = (int)CommandTypeEnum.QueryCommand
            };


            byte[] commandBytes = CommandUtils.ConcatByteArrays(commandHeader.ToBytes(), queryCommand.ToBytes());
            SendAnswer(IP, Port, commandBytes);
        }