Man Page: rmr_wh_state¶
RMR LIBRARY FUNCTIONS¶
#include <rmr/rmr.h> int rmr_wh_state( void* vctx, rmr_whid_t whid )
rmr_wh_state function will return the current state
of the connection associated with the given wormhole (whid).
The return value indicates whether the connection is open
(RMR_OK), or closed (any other return value).
When using some transport mechanisms (e.g. NNG), it may not be possible for RMR to know the actual state and the connection may always be reported as “open.”
The following values are potential return values.
The wormhole ID is valid and the connection is “open.”
THe wormhole ID passed into the function was not valid.
The wormhole is not open (not connected).
The context passed to the function was nil or invalid.
Wormholes have not been initialised (no wormhole open call has been made).
rmr_wh_open(3), rmr_wh_send_msg(3), rmr_wh_close(3)