Class NetworkDataSource

    • Field Detail

      • LOGGER

        protected static final java.util.logging.Logger LOGGER
    • Method Detail

      • queryUdp

        protected DnsMessage queryUdp​(DnsMessage message,
                                      java.net.InetAddress address,
                                      int port)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • queryTcp

        protected DnsMessage queryTcp​(DnsMessage message,
                                      java.net.InetAddress address,
                                      int port)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • createSocket

        protected java.net.Socket createSocket()
        Create a Socket using the system default SocketFactory.
        Returns:
        The new Socket instance
      • createDatagramSocket

        protected java.net.DatagramSocket createDatagramSocket()
                                                        throws java.net.SocketException
        Create a DatagramSocket using the system defaults.
        Returns:
        The new DatagramSocket instance
        Throws:
        java.net.SocketException - If creation of the DatagramSocket fails