org.ros.internal.transport.tcp
Class TcpClientConnection
java.lang.Object
org.ros.internal.transport.tcp.TcpClientConnection
public class TcpClientConnection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBootstrap
public org.jboss.netty.bootstrap.ClientBootstrap getBootstrap()
- Returns:
- the
ClientBootstrap
instance used to reconnect
getRemoteAddress
public java.net.SocketAddress getRemoteAddress()
- Returns:
- the
SocketAddress
to reconnect to
setPersistent
public void setPersistent(boolean persistent)
- Parameters:
persistent
- true
if this client connection should reconnect when
disconnected
isPersistent
public boolean isPersistent()
- Returns:
true
if this client connection should reconnect when
disconnected
write
public org.jboss.netty.channel.ChannelFuture write(org.jboss.netty.buffer.ChannelBuffer buffer)
- See Also:
Channel.write(java.lang.Object)
getName
public java.lang.String getName()
- Returns:
- the name of this connection (e.g. Subscriber)
isDefunct
public boolean isDefunct()
- Returns:
true
if this connection is defunct (e.g. received a
connection refused error)
setDefunct
public void setDefunct(boolean defunct)
- Parameters:
defunct
- true
if this connection is defunct (e.g. received a
connection refused error)