@classmethod<EOL><INDENT>def tcp(klass, host, port, interval, timeout=None, deregister=None):<DEDENT>
ret = {<EOL>'<STR_LIT>': '<STR_LIT>'.format(host=host, port=port),<EOL>'<STR_LIT>': interval<EOL>}<EOL>if timeout:<EOL><INDENT>ret['<STR_LIT>'] = timeout<EOL><DEDENT>if deregister:<EOL><INDENT>ret['<STR_LIT>'] = deregister<EOL><DEDENT>return ret<EOL>
Attempt to establish a tcp connection to the specified *host* and
*port* at a specified *interval* with optional *timeout* and optional
*deregister* after which a failing service will be automatically
deregistered.