Пример #1
0
 public NameQueryRequest()
 {
     Header         = new NameServicePacketHeader();
     Header.OpCode  = NameServiceOperation.QueryRequest;
     Header.ARCount = 1;
     Question       = new QuestionSection();
 }
Пример #2
0
 public NodeStatusRequest()
 {
     Header        = new NameServicePacketHeader();
     Header.OpCode = NameServiceOperation.QueryRequest;
     Question      = new QuestionSection();
     Question.Type = NameRecordType.NBStat;
 }
Пример #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];
        }
Пример #5
0
 public NodeStatusRequest()
 {
     Header = new NameServicePacketHeader
     {
         OpCode = NameServiceOperation.QueryRequest
     };
     Question = new QuestionSection
     {
         Type = NameRecordType.NBStat
     };
 }
Пример #6
0
 public NameQueryRequest()
 {
     Header = new NameServicePacketHeader
     {
         OpCode = NameServiceOperation.QueryRequest,
         Flags  = OperationFlags.RecursionDesired
     };
     Question = new QuestionSection
     {
         Type = NameRecordType.NB
     };
 }
Пример #7
0
        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];
        }
Пример #8
0
 public NodeStatusRequest(byte[] buffer, int offset)
 {
     Header   = new NameServicePacketHeader(buffer, ref offset);
     Question = new QuestionSection(buffer, ref offset);
 }