org.ros.internal.transport.tcp
Class TcpRosServer
java.lang.Object
org.ros.internal.transport.tcp.TcpRosServer
public class TcpRosServer
- extends java.lang.Object
The TCP server which is used for data communication between publishers and
subscribers or between a service and a service client.
This server is used after publishers, subscribers, services and service
clients have been told about each other by the master.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcpRosServer
public TcpRosServer(BindAddress bindAddress,
AdvertiseAddress advertiseAddress,
TopicParticipantManager topicParticipantManager,
ServiceManager serviceManager,
java.util.concurrent.ScheduledExecutorService executorService)
start
public void start()
shutdown
public void shutdown()
- Close all incoming connections and the server socket.
Calling this method more than once has no effect.
getAddress
public java.net.InetSocketAddress getAddress()
- Returns:
- the advertise-able
InetSocketAddress
of this
TcpRosServer
getAdvertiseAddress
public AdvertiseAddress getAdvertiseAddress()
- Returns:
- the
AdvertiseAddress
of this TcpRosServer