Module org.snmp4j

Class UdpAddress

    • Constructor Detail

      • UdpAddress

        public UdpAddress​(java.net.InetAddress inetAddress,
                          int port)
        Create a UdpAddress from the given InetAddress and port.
        Parameters:
        inetAddress - the IP address portion of the UDP address to create.
        port - the UDP port.
      • UdpAddress

        public UdpAddress​(int port)
        Create a UdpAddress for the local host (InetAddress.getLocalHost() with the provided port. If the local host is not known, a RuntimeException is thrown.
        Parameters:
        port - the UDP port.
      • UdpAddress

        public UdpAddress​(java.lang.String address)