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)))
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)))