Package org.cipango.dns

Examples of org.cipango.dns.DnsMessage


    public DnsMessage waitAnswer(int timeout) throws IOException
    {
      DatagramPacket packet = new DatagramPacket(new byte[MAX_PACKET_SIZE], MAX_PACKET_SIZE);
      _socket.setSoTimeout(timeout);
      _socket.receive(packet);
      DnsMessage message = new DnsMessage();
      message.decode(new ByteArrayBuffer(packet.getData()));
      _socket.close();
      return message;
    }
View Full Code Here

TOP

Related Classes of org.cipango.dns.DnsMessage

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.