Module org.snmp4j

Class TcpAddress

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Variable>, BERSerializable, Address, AssignableFromByteArray, AssignableFromString, Variable
Direct Known Subclasses:
TlsAddress

public class TcpAddress extends TransportIpAddress
The TcpAddress represents TCP/IP transport addresses.
Version:
1.0
Author:
Frank Fock
See Also:
  • Constructor Details

    • TcpAddress

      public TcpAddress()
    • TcpAddress

      public TcpAddress(InetAddress inetAddress, int port)
    • TcpAddress

      public TcpAddress(int port)
    • TcpAddress

      public TcpAddress(String address)
  • Method Details

    • parse

      public static Address parse(String address)
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Variable
      Overrides:
      equals in class TransportIpAddress
    • getSocketAddress

      public SocketAddress getSocketAddress()
      Description copied from interface: Address
      Gets the socket address of this address.
      Specified by:
      getSocketAddress in interface Address
      Overrides:
      getSocketAddress in class IpAddress
      Returns:
      the socket address representation (if available) of this address or null if that does not exist (yet).
    • clone

      public Object clone()
      Description copied from interface: Variable
      Clones 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.
      Specified by:
      clone in interface Variable
      Overrides:
      clone in class IpAddress
      Returns:
      a new instance of this Variable with the same value.