Пример #1
0
 internal override void ParseData(byte[] resultData, int startPosition, int length)
 {
     Version       = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     OperationCode = (LlqOperationCode)DnsMessageBase.ParseUShort(resultData, ref startPosition);
     ErrorCode     = (LlqErrorCode)DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Id            = DnsMessageBase.ParseULong(resultData, ref startPosition);
     LeaseTime     = TimeSpan.FromSeconds(DnsMessageBase.ParseUInt(resultData, ref startPosition));
 }
Пример #2
0
 internal override void ParseRecordData(byte[] resultData, int startPosition, int length)
 {
     Preference = DnsMessageBase.ParseUShort(resultData, ref startPosition);
     Locator64  = DnsMessageBase.ParseULong(resultData, ref startPosition);
 }