switchboard.sbtcp module

Functions:

bytes2sb(b)

convert_to_queue(q, cls[, max_rate])

get_parser()

main()

normalize_inputs(inputs, max_rate)

normalize_inputs_and_outputs(inputs, ...)

normalize_outputs(outputs, max_rate)

parse_rule(rule)

rule_matches(rule, addr)

run_client(host, port[, quiet, max_rate, ...])

Connect to a server, retrying until a connection is made.

run_server(host[, port, quiet, max_rate, ...])

Accepts client connections in a loop until Ctrl-C is pressed.

sb2bytes(p)

sb2tcp(inputs, conn)

start_tcp_bridge([inputs, outputs, host, ...])

tcp2sb(outputs, conn)

switchboard.sbtcp.bytes2sb(b)[source]
switchboard.sbtcp.convert_to_queue(q, cls, max_rate=None)[source]
switchboard.sbtcp.get_parser()[source]
switchboard.sbtcp.main()[source]
switchboard.sbtcp.normalize_inputs(inputs, max_rate)[source]
switchboard.sbtcp.normalize_inputs_and_outputs(inputs, outputs, max_rate)[source]
switchboard.sbtcp.normalize_outputs(outputs, max_rate)[source]
switchboard.sbtcp.parse_rule(rule)[source]
switchboard.sbtcp.rule_matches(rule, addr)[source]
switchboard.sbtcp.run_client(host, port, quiet=False, max_rate=None, inputs=None, outputs=None, run_once=False)[source]

Connect to a server, retrying until a connection is made.

switchboard.sbtcp.run_server(host, port=0, quiet=False, max_rate=None, run_once=False, outputs=None, inputs=None)[source]

Accepts client connections in a loop until Ctrl-C is pressed.

switchboard.sbtcp.sb2bytes(p)[source]
switchboard.sbtcp.sb2tcp(inputs, conn)[source]
switchboard.sbtcp.start_tcp_bridge(inputs=None, outputs=None, host='localhost', port=5555, quiet=True, max_rate=None, mode='auto', run_once=False)[source]
switchboard.sbtcp.tcp2sb(outputs, conn)[source]