Interface Client

All Known Implementing Classes:
NioClient, TcpClient

public interface Client
Defines common operations for clients (TCP or NIO)
Since:
3.6.5
  • Method Details

    • localAddress

      Address localAddress()
    • remoteAddress

      Address remoteAddress()
    • isConnected

      boolean isConnected()
    • send

      void send(byte[] data, int offset, int length) throws Exception
      Sends data to the remote server. The server's address must have been set before.
      Throws:
      Exception
    • send

      void send(ByteBuffer data) throws Exception
      Sends data to the remote server. The server's address must have been set before.
      Throws:
      Exception