class documentation

class TCPROSServer(object):

Constructor: TCPROSServer(port)

View In Hierarchy

ROS Protocol handler for TCPROS. Accepts both TCPROS topic connections as well as ROS service connections over TCP. TCP server socket is run once start_server() is called -- this is implicitly called during init_publisher().

Method __init__ Constructor @param port: port number to bind to (default 0/any) @type port: int
Method get_address @return: address and port of TCP server socket for accepting inbound connections @rtype: str, int
Method shutdown stops the TCP/IP server responsible for receiving inbound connections
Method start_server Starts the TCP socket server if one is not already running
Instance Variable lock Undocumented
Instance Variable port Undocumented
Instance Variable service_connection_handler Undocumented
Instance Variable tcp_ros_server Undocumented
Instance Variable topic_connection_handler Undocumented
Method _tcp_server_callback TCPServer callback: detects incoming topic or service connection and passes connection accordingly
def __init__(self, port=0):

Constructor @param port: port number to bind to (default 0/any) @type port: int

def get_address(self):

@return: address and port of TCP server socket for accepting inbound connections @rtype: str, int

def shutdown(self, reason=''):

stops the TCP/IP server responsible for receiving inbound connections

def start_server(self):

Starts the TCP socket server if one is not already running

lock =

Undocumented

port =

Undocumented

service_connection_handler =

Undocumented

tcp_ros_server =

Undocumented

topic_connection_handler =

Undocumented

def _tcp_server_callback(self, sock, client_addr):

TCPServer callback: detects incoming topic or service connection and passes connection accordingly

@param sock: socket connection @type sock: socket.socket @param client_addr: client address @type client_addr: (str, int) @raise TransportInitError: If transport cannot be successfully initialized