3 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
4 .. SPDX-License-Identifier: CC-BY-4.0
5 .. CAUTION: this document is generated from source in doc/src/rtd.
6 .. To make changes edit the source and recompile the document.
7 .. Do NOT make changes directly to .rst or .md files.
10 ============================================================================================
11 Man Page: rmr_wh_state
12 ============================================================================================
15 ============================================================================================
19 --------------------------------------------------------------------------------------------
24 --------------------------------------------------------------------------------------------
30 int rmr_wh_state( void* vctx, rmr_whid_t whid )
35 --------------------------------------------------------------------------------------------
37 The rmr_wh_state function will return the current state of
38 the connection associated with the given wormhole (whid). The
39 return value indicates whether the connection is open
40 (RMR_OK), or closed (any other return value).
42 When using some transport mechanisms (e.g. NNG), it may not
43 be possible for RMR to know the actual state and the
44 connection may always be reported as "open."
47 --------------------------------------------------------------------------------------------
49 The following values are potential return values.
55 The wormhole ID is valid and the connection is "open."
60 THe wormhole ID passed into the function was not valid.
65 The wormhole is not open (not connected).
70 The context passed to the function was nil or invalid.
75 Wormholes have not been initialised (no wormhole open call
81 --------------------------------------------------------------------------------------------
83 rmr_wh_open(3), rmr_wh_send_msg(3), rmr_wh_close(3)