Exemplo n.º 1
0
        public Rpacket(RCommands RCommand, Rmessage Param, Rexp Value)
        {
            /* Create array to message */
            Byte[] binValue = Value.getBinaryRepresentation();

            Int32 ValueLength = binValue.Length;
            Int32 ParamLength = Param.Message.Length;

            message = new Byte[ParamLength + ValueLength];

            header = new Rheader(RCommand, (ParamLength + ValueLength));
            Array.Copy(Param.Message, 0, message, 0, ParamLength);
            Array.Copy(binValue, 0, message, ParamLength, ValueLength);
        }
Exemplo n.º 2
0
        public Rpacket(RCommands RCommand, Rmessage Param, Rexp Value)
        {
            /* Create array to message */
            Byte[] binValue = Value.getBinaryRepresentation();

            Int32 ValueLength = binValue.Length;
            Int32 ParamLength = Param.Message.Length;

            message = new Byte[ParamLength + ValueLength];

            header = new Rheader(RCommand, (ParamLength + ValueLength));
            Array.Copy(Param.Message, 0, message, 0, ParamLength);
            Array.Copy(binValue, 0, message, ParamLength, ValueLength);
        }
Exemplo n.º 3
0
 public Rpacket(RCommands RCommand, Rmessage Param1, Rmessage Param2)
 {
 }
Exemplo n.º 4
0
 public Rpacket(RCommands RCommand, Rmessage Param)
 {
     message = Param.Message;
     header = new Rheader(RCommand, Param.Message.Length);
 }
Exemplo n.º 5
0
 public Rpacket(RCommands RCommand)
 {
     header = new Rheader(RCommand);
 }
Exemplo n.º 6
0
 public Rheader(RCommands Cmd)
 {
     cmd = BitConverter.GetBytes((int)Cmd);
 }
Exemplo n.º 7
0
 public Rheader(RCommands Cmd, Int32 Length)
 {
     cmd    = BitConverter.GetBytes((int)Cmd);
     length = BitConverter.GetBytes(Length);
 }
Exemplo n.º 8
0
 public Rpacket(RCommands RCommand, Rmessage Param1, Rmessage Param2)
 {
 }
Exemplo n.º 9
0
 public Rpacket(RCommands RCommand, Rmessage Param)
 {
     message = Param.Message;
     header  = new Rheader(RCommand, Param.Message.Length);
 }
Exemplo n.º 10
0
 public Rpacket(RCommands RCommand)
 {
     header = new Rheader(RCommand);
 }