Example #1
0
 internal void Expand(MessageRouterResponse response)
 {
     ConnectionSerialNumber = BitConverter.ToUInt16(response.ResponseData, 0);
     OriginatorVendorId     = BitConverter.ToUInt16(response.ResponseData, 2);
     OriginatorSerialNumber = BitConverter.ToUInt32(response.ResponseData, 4);
     RemainingPathSize      = response.ResponseData[8];
 }
Example #2
0
        internal void Expand(MessageRouterResponse response)
        {
            O2T_ConnectionId       = BitConverter.ToUInt32(response.ResponseData, 0);
            T2O_ConnectionId       = BitConverter.ToUInt32(response.ResponseData, 4);
            ConnectionSerialNumber = BitConverter.ToUInt16(response.ResponseData, 8);
            OriginatorVendorId     = BitConverter.ToUInt16(response.ResponseData, 10);
            OriginatorSerialNumber = BitConverter.ToUInt32(response.ResponseData, 12);
            O2T_API = BitConverter.ToUInt32(response.ResponseData, 16);
            T2O_API = BitConverter.ToUInt32(response.ResponseData, 20);
            ApplicationReplySize = response.ResponseData[24];

            if (ApplicationReplySize > 0)
            {
                byte[] temp = new byte[ApplicationReplySize * 2];
                Buffer.BlockCopy(response.ResponseData, 26, temp, 0, temp.Length);
            }
        }