com.deltavsoft.rcfproto

## Class TcpEndpoint

- java.lang.Object
- - com.deltavsoft.rcfproto.Endpoint
  - - com.deltavsoft.rcfproto.TcpEndpoint

- Direct Known Subclasses:
    HttpEndpoint, HttpsEndpoint

      public class TcpEndpoint
      extends Endpoint

  Represents a TCP endpoint.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TcpEndpoint(int port)` Constructs a TcpEndpoint from a port number.
    `TcpEndpoint(java.lang.String ip, int port)` Constructs a TcpEndpoint from an IP address and port number.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `asString()` Returns a string representation of the TcpEndpoint.
    `void` | `delete()`
    `protected void` | `finalize()`
    `java.lang.String` | `getIp()` Gets the IP address of the TcpEndpoint.
    `int` | `getPort()` Gets the port number of the TcpEndpoint.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TcpEndpoint

          public TcpEndpoint(int port)

      Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 .

    - #### TcpEndpoint

          public TcpEndpoint(java.lang.String ip,
                     int port)

      Constructs a TcpEndpoint from an IP address and port number.

  - ### Method Detail

    - #### finalize

          protected void finalize()

      Overrides:
        `finalize` in class `Endpoint`

    - #### delete

          public void delete()

      Overrides:
        `delete` in class `Endpoint`

    - #### getIp

          public java.lang.String getIp()

      Gets the IP address of the TcpEndpoint.

    - #### getPort

          public int getPort()

      Gets the port number of the TcpEndpoint.

    - #### asString

          public java.lang.String asString()

      Returns a string representation of the TcpEndpoint.