def connect(host="127.0.0.1", port=10123, 
    sock=None, handler_factory=bjsonrpc.handlers.NullHandler):
    """
        Creates a *bjson.connection.Connection* object linked to a connected
        socket.