Exemple #1
0
def SocketConnection(host, port = DEFAULT_PORT):
    """shorthand for creating a conneciton over a socket to a server"""
    return Connection(Channel(SocketStream.from_new_socket(host, port)))
Exemple #2
0
def SocketConnection(host, port=DEFAULT_PORT):
    """shorthand for creating a conneciton over a socket to a server"""
    return Connection(Channel(SocketStream.from_new_socket(host, port)))