public string List()
        {
            Command command = Command.LIST;

            return(CommandUtils.GetCode(command) + " not yet implemented.");
        }
        public string Query()
        {
            Command command = Command.QUERY;

            return(CommandUtils.GetCode(command) + " not yet implemented.");
        }
Пример #3
0
        // Mother Writer
        public void Write(Stream outputStream)
        {
            byte[] encoded = Encoding.UTF8.GetBytes(string.Format("{0} 0000000000 {1:0000000000}\n", CommandUtils.GetCode(command), sequenceNumber));
            outputStream.Write(encoded, 0, encoded.Length);

            foreach (VSKeyPair pair in vsKeyPairs)
            {
                pair.Write(outputStream);
            }
            foreach (PayloadObject payload in payloadObjects)
            {
                payload.Write(outputStream);
            }
            foreach (RoutingObject route in routingObjects)
            {
                route.Write(outputStream);
            }

            byte[] newLine = Encoding.UTF8.GetBytes("end\n");
            outputStream.Write(newLine, 0, newLine.Length);
        }