def SecSocketConnection(host, username, password, port = DEFAULT_PORT):
    try:
        stream = SocketStream.from_new_secure_socket(host, port, username, password)
    except:
        raise LoginError("authentication failure")
    return Connection(Channel(stream))

#
# Async factory
#
shorthand for creating secure socket connections
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/Rpyc/Utils/Factories.py/SecSocketConnection