Example #1
0
 public NameQueryRequest()
 {
     Header         = new NameServicePacketHeader();
     Header.OpCode  = NameServiceOperation.QueryRequest;
     Header.ARCount = 1;
     Question       = new QuestionSection();
 }
 public NodeStatusRequest()
 {
     Header        = new NameServicePacketHeader();
     Header.OpCode = NameServiceOperation.QueryRequest;
     Question      = new QuestionSection();
     Question.Type = NameRecordType.NBStat;
 }
Example #3
0
 public NameQueryRequest()
 {
     Header        = new NameServicePacketHeader();
     Header.OpCode = NameServiceOperation.QueryRequest;
     Header.Flags  = OperationFlags.RecursionDesired;
     Question      = new QuestionSection();
     Question.Type = NameRecordType.NB;
 }
        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 #5
0
 public NodeStatusRequest()
 {
     Header = new NameServicePacketHeader
     {
         OpCode = NameServiceOperation.QueryRequest
     };
     Question = new QuestionSection
     {
         Type = NameRecordType.NBStat
     };
 }
Example #6
0
 public NameQueryRequest()
 {
     Header = new NameServicePacketHeader
     {
         OpCode = NameServiceOperation.QueryRequest,
         Flags  = OperationFlags.RecursionDesired
     };
     Question = new QuestionSection
     {
         Type = NameRecordType.NB
     };
 }
        public byte[] Address; // IPv4 address

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