org.ros.internal.transport.tcp
Class TcpClientConnection

java.lang.Object
  extended by org.ros.internal.transport.tcp.TcpClientConnection

public class TcpClientConnection
extends java.lang.Object


Method Summary
 org.jboss.netty.bootstrap.ClientBootstrap getBootstrap()
           
 java.lang.String getName()
           
 java.net.SocketAddress getRemoteAddress()
           
 boolean isDefunct()
           
 boolean isPersistent()
           
 void setDefunct(boolean defunct)
           
 void setPersistent(boolean persistent)
           
 org.jboss.netty.channel.ChannelFuture write(org.jboss.netty.buffer.ChannelBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)