java.lang.Object
org.snmp4j.smi.AbstractVariable
org.snmp4j.smi.SMIAddress
org.snmp4j.smi.IpAddress
org.snmp4j.smi.TransportIpAddress
org.snmp4j.smi.TcpAddress
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Variable>,BERSerializable,Address,AssignableFromByteArray,AssignableFromString,Variable
- Direct Known Subclasses:
TlsAddress
The
TcpAddress represents TCP/IP transport addresses.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.smi.TransportIpAddress
portFields inherited from class org.snmp4j.smi.IpAddress
ANY_IPADDRESSFields inherited from class org.snmp4j.smi.AbstractVariable
SMISYNTAXES_PROPERTIES -
Constructor Summary
ConstructorsConstructorDescriptionTcpAddress(int port) TcpAddress(String address) TcpAddress(InetAddress inetAddress, int port) -
Method Summary
Methods inherited from class org.snmp4j.smi.TransportIpAddress
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, hashCode, isValid, parseAddress, setPort, setTransportAddress, toStringMethods inherited from class org.snmp4j.smi.IpAddress
fromSubIndex, getFamily, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndexMethods inherited from class org.snmp4j.smi.AbstractVariable
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isExceptionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.snmp4j.smi.Address
isTransportCompatible
-
Constructor Details
-
TcpAddress
public TcpAddress() -
TcpAddress
-
TcpAddress
public TcpAddress(int port) -
TcpAddress
-
-
Method Details
-
parse
-
equals
- Specified by:
equalsin interfaceVariable- Overrides:
equalsin classTransportIpAddress
-
getSocketAddress
Description copied from interface:AddressGets the socket address of this address.- Specified by:
getSocketAddressin interfaceAddress- Overrides:
getSocketAddressin classIpAddress- Returns:
- the socket address representation (if available) of this address or
nullif that does not exist (yet).
-
clone
Description copied from interface:VariableClones this variable. Cloning can be used by the SNMP4J API to better support concurrency by creating a clone for internal processing. The content of this object is independent to the content of the clone. Thus, changes to the clone will have no effect to this object.
-