Package org.cipango.dns

Examples of org.cipango.dns.DnsClass


    int nbRecord = getMessage().getHeaderSection().getQuestionRecords();
    for (int i = 0; i < nbRecord; i++)
    {
      Name name = getMessage().getCompression().decodeName(buffer);
      Type type = Type.getType(BufferUtil.get16(buffer));
      DnsClass clazz = DnsClass.getClass(BufferUtil.get16(buffer));
     
      Record record = type.newRecord();
      record.setDnsClass(clazz);
      record.setName(name);
      _records.add(record);
View Full Code Here


  {
    for (int i = 0; i < nbRecords; i++)
    {
      Name name = getMessage().getCompression().decodeName(buffer);
      Type type = Type.getType(BufferUtil.get16(buffer));
      DnsClass clazz = DnsClass.getClass(BufferUtil.get16(buffer));
     
      Record record = type.newRecord();
      record.setName(name);
      record.setDnsClass(clazz);
      record.setTtl(BufferUtil.getInt(buffer));
View Full Code Here

TOP

Related Classes of org.cipango.dns.DnsClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.