java.lang.Cloneable
, java.lang.Comparable<Variable>
, BERSerializable
, Address
, AssignableFromByteArray
, AssignableFromString
, Variable
DtlsAddress
public class UdpAddress extends TransportIpAddress
UdpAddress
represents UDP/IP transport addresses.SMISYNTAXES_PROPERTIES
ANY_IPADDRESS
port
Constructor | Description |
---|---|
UdpAddress() |
Creates an empty UdpAddress without
IpAddress.getInetAddress() and zero port. |
UdpAddress(int port) |
Create a UdpAddress for the local host (
InetAddress.getLocalHost()
with the provided port. |
UdpAddress(java.lang.String address) |
|
UdpAddress(java.net.InetAddress inetAddress,
int port) |
Create a UdpAddress from the given
InetAddress and port. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
static Address |
parse(java.lang.String address) |
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
clone, fromSubIndex, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndex
finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, hashCode, isValid, parseAddress, setPort, setTransportAddress, toString
public UdpAddress()
IpAddress.getInetAddress()
and zero port.public UdpAddress(java.net.InetAddress inetAddress, int port)
InetAddress
and port.inetAddress
- the IP address portion of the UDP address to create.port
- the UDP port.public UdpAddress(int port)
InetAddress.getLocalHost()
with the provided port. If the local host is not known, a RuntimeException
is thrown.port
- the UDP port.public UdpAddress(java.lang.String address)
public static Address parse(java.lang.String address)
public boolean equals(java.lang.Object o)
equals
in interface Variable
equals
in class TransportIpAddress
Copyright © 2018 SNMP4J.org. All rights reserved.