+_rmr_set_vlevel = _wrap_rmr_function('rmr_set_vlevel', None, [c_int])
+
+
+def rmr_set_vlevel(new_level: c_int):
+ """
+ Sets the verbosity level which determines the messages RMR writes to standard error.
+ Refer to RMR C documentation for method::
+
+ void rmr_set_vlevel( int new_level )
+
+ Parameters
+ ----------
+ new_level: int
+ New logging verbosity level, an integer in the range 0 (none) to 5 (debug).
+ """
+ _rmr_set_vlevel(new_level)
+
+
+_rmr_wh_call = _wrap_rmr_function('rmr_wh_call', POINTER(rmr_mbuf_t), [c_void_p, c_int, POINTER(rmr_mbuf_t), c_int, c_int])
+
+
+def rmr_wh_call(vctx: c_void_p, whid: c_int, ptr_mbuf: POINTER(rmr_mbuf_t), call_id: c_int, max_wait: c_int) -> POINTER(rmr_mbuf_t):
+ """
+ Sends a message buffer (msg) using a wormhole ID (whid) and waits for a response.
+ Refer to RMR C documentation for method::
+
+ rmr_mbuf_t* rmr_wh_call( void* vctx, rmr_whid_t whid, rmr_mbuf_t* mbuf, int call_id, int max_wait )
+
+ Parameters
+ ----------
+ vctx: ctypes c_void_p
+ Pointer to RMR context
+ whid: c_int
+ Wormhole ID returned by rmr_wh_open
+ ptr_mbuf: ctypes POINTER(rmr_mbuf_t)
+ Pointer to rmr_mbuf structure
+ call_id: c_int
+ number in the range of 2..255 to identify the caller
+ max_wait: c_int
+ number of milliseconds to wait for a reply
+
+ Returns
+ -------
+ ctypes c_void_p:
+ Pointer to rmr_mbuf structure
+ """
+ return _rmr_wh_call(vctx, whid, ptr_mbuf, call_id, max_wait)
+
+
+_rmr_wh_close = _wrap_rmr_function('rmr_close', None, [c_void_p, c_int])
+
+
+def rmr_wh_close(vctx: c_void_p, whid: c_int):
+ """
+ Closes the wormhole associated with the wormhole id.
+ Refer to RMR C documentation for method::
+
+ void rmr_close( void* vctx, rmr_whid_t whid )
+
+ Parameters
+ ----------
+ vctx: ctypes c_void_p
+ Pointer to RMR context
+ whid: c_int
+ Wormhole ID returned by rmr_wh_open
+ """
+ _rmr_wh_close(vctx, whid)
+
+
+_rmr_wh_open = _wrap_rmr_function('rmr_wh_open', c_int, [c_void_p, c_char_p])
+
+
+def rmr_wh_open(vctx: c_void_p, target: c_char_p) -> c_int:
+ """
+ Creates a direct link for sending to another RMR based process.
+ Refer to RMR C documentation for method::
+
+ rmr_whid_t rmr_wh_open( void* vctx, char* target )
+
+ Parameters
+ ----------
+ vctx: ctypes c_void_p
+ Pointer to RMR context
+ target: str
+ Pointer to bytes built from the target process host name and port number
+ as a string; e.g., b'localhost:4550'
+
+ Returns
+ -------
+ c_int:
+ Wormhole ID
+ """
+ return _rmr_wh_open(vctx, target)
+
+
+_rmr_wh_send_msg = _wrap_rmr_function('rmr_wh_send_msg', POINTER(rmr_mbuf_t), [c_void_p, c_int, POINTER(rmr_mbuf_t)])
+
+
+def rmr_wh_send_msg(vctx: c_void_p, whid: c_int, ptr_mbuf: POINTER(rmr_mbuf_t)) -> POINTER(rmr_mbuf_t):
+ """
+ Sends a message buffer (msg) using a wormhole ID (whid).
+ Refer to RMR C documentation for method::
+
+ rmr_mbuf_t* rmr_wh_send_msg( void* vctx, rmr_whid_t id, rmr_mbuf_t* msg )
+
+ Parameters
+ ----------
+ vctx: ctypes c_void_p
+ Pointer to RMR context
+ whid: c_int
+ Wormhole ID returned by rmr_wh_open
+ ptr_mbuf: ctypes POINTER(rmr_mbuf_t)
+ Pointer to rmr_mbuf structure
+
+ Returns
+ -------
+ ctypes POINTER(rmr_mbuf_t):
+ Pointer to rmr_mbuf structure
+ """
+ return _rmr_wh_send_msg(vctx, whid, ptr_mbuf)
+
+
+_rmr_wh_state = _wrap_rmr_function('rmr_wh_state', c_int, [c_void_p, c_int])
+
+
+def rmr_wh_state(vctx: c_void_p, whid: c_int) -> c_int:
+ """
+ Gets the state of the connection associated with the given wormhole (whid).
+ Refer to RMR C documentation for method::
+
+ int rmr_wh_state( void* vctx, rmr_whid_t whid )
+
+ Parameters
+ ----------
+ vctx: ctypes c_void_p
+ Pointer to RMR context
+ whid: c_int
+ Wormhole ID returned by rmr_wh_open
+
+ Returns
+ -------
+ c_int:
+ State of the connection
+ """
+ return _rmr_wh_state(vctx, whid, whid)
+
+
+########################################################################################
+# Methods that exist ONLY in rmr-python, and are not wrapped methods.
+# These should have been in a separate module, but leaving here to prevent api breakage.
+########################################################################################