Example #1
0
 public NameQueryRequest()
 {
     Header         = new NameServicePacketHeader();
     Header.OpCode  = NameServiceOperation.QueryRequest;
     Header.ARCount = 1;
     Question       = new QuestionSection();
 }
        public byte[] Address; // IPv4 address

        public NameRegistrationRequest()
        {
            Header         = new NameServicePacketHeader();
            Header.OpCode  = NameServiceOperation.RegistrationRequest;
            Header.QDCount = 1;
            Header.ARCount = 1;
            Header.Flags   = OperationFlags.Broadcast | OperationFlags.RecursionDesired;
            Question       = new QuestionSection();
            Resource       = new ResourceRecord();
            Address        = new byte[4];
        }
Example #3
0
 public NameQueryRequest(byte[] buffer, int offset)
 {
     Header   = new NameServicePacketHeader(buffer, ref offset);
     Question = new QuestionSection(buffer, ref offset);
 }