def pn_reactor_connection(r, h): return wrap(r.connection(h), pn_connection_wrapper)
def pn_reactor_connection_to_host(r, host, port, h): return wrap(r.connectionToHost(host, int(port), h), pn_connection_wrapper)