Class TcpClientManager

java.lang.Object
org.ros.internal.transport.tcp.TcpClientManager

public class TcpClientManager extends Object
Author:
damonkohler@google.com (Damon Kohler)
  • Constructor Details

    • TcpClientManager

      public TcpClientManager(Executor executor)
  • Method Details

    • addNamedChannelHandler

      public void addNamedChannelHandler(NamedChannelHandler namedChannelHandler)
    • addAllNamedChannelHandlers

      public void addAllNamedChannelHandlers(List<NamedChannelHandler> namedChannelHandlers)
    • connect

      public TcpClient connect(String connectionName, SocketAddress socketAddress)
      Connects to a server.

      This call blocks until the connection is established or fails.

      Parameters:
      connectionName - the name of the new connection
      socketAddress - the SocketAddress to connect to
      Returns:
      a new TcpClient
    • shutdown

      public void shutdown()
      Sets all TcpClient Connections as non-persistent and closes all open Channels.