def Connection(server, queue, config_path):
 (host, port, protocol) = server.split(':')
 if (not (protocol in 'st')):
  raise Exception(('Unknown protocol: %s' % protocol))
 c = TcpConnection(server, queue, config_path)
 c.start()
 return c

def Connection ( server , queue , config_path ) : ( host , port , protocol ) = server . split ( ':' ) if ( not ( protocol in 'st' ) ) : raise Exception ( ( 'Unknown protocol: %s' % protocol ) ) c = TcpConnection ( server , queue , config_path ) c . start ( ) return c
makes asynchronous connections to a remote electrum server .