26738e1da66e585e4e8669930ddface93b8d945b
[ric-plt/lib/rmr.git] / doc / src / man / rmr.7.xfm
1 .if false
2 ==================================================================================
3         Copyright (c) 2019 Nokia
4         Copyright (c) 2018-2019 AT&T Intellectual Property.
5
6    Licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8    You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12    Unless required by applicable law or agreed to in writing, software
13    distributed under the License is distributed on an "AS IS" BASIS,
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    See the License for the specific language governing permissions and
16    limitations under the License.
17 ==================================================================================
18 .fi
19 .if false
20         Mnemonic        rmr.7.xfm
21         Abstract        The manual page for the whole RMr library
22         Author          E. Scott Daniels
23         Date            29 January 2019
24 .fi
25
26 .gv e LIB lib
27 .im &{lib}/man/setup.im
28
29 &line_len(6i)
30
31 &h1(RMr Library)
32 &h2(NAME)
33         RMr -- Ric Message Router Library
34
35 &h2(DESCRIPTION)
36 RMr is a library which provides  a user application with the ability
37 to send and receive messages to/from  other RMr based applications
38 without having to understand the underlying messaging transport environment (e.g. Nanomsg)
39 and without needing to know which other endpoint applications are currently
40 available and accepting messages.
41 To do this, RMr depends on a routing table generated by an external source.
42 This table is used to determine the destination endpoint of each message sent by mapping the
43 message type T (supplied by the user application) to an endpoint entry.
44 Once determined, the message is sent directly to the endpoint.
45 The user application is unaware of which endpoint actually receives the
46 message, and in some cases whether that message was sent to multiple
47 applications.
48
49 &space
50 RMr functions do provide for the ability to respond to the specific source
51 instance of a message allowing for either a request response, or call
52 response relationship when needed.
53
54
55 &h3(The Route Table)
56 The library is supplied with a route table which maps message numbers to
57 endpoint groups such that each time a message of type T is sent, the message
58 is delivered to one member of each group associated with T.
59 For example, message type 2 might route to two different groups where
60 group A consists of worker1 and worker2, while group B consists only of
61 logger1.
62
63 &space
64 It is the responsibility of the route table generator to know which endpoints
65 belong to which groups, and which groups accept which message types.
66 Once understood, the route table generator publishes a table that is ingested
67 by RMr and used for mapping messages to end points.
68
69 &h3(Environment)
70 To enable configuration of the library behaviour outside of direct user application
71 control, RMr supports a number of environment variables which provide information
72 to the library.
73 The following is a list of the various environment variables, what they control
74 and the defaults which RMr uses if undefined.
75
76 &beg_dlist(.75i : ^&bold_font )
77 &di(RMR_ASYNC_CONN) Allows the asynch connection mode to be turned off (by setting the
78         value to 0. When set to 1, or missing from the environment, RMR will invoke the
79         connection interface in the transport mechanism using the non-blocking (asynch)
80         mode.  This will likely result in many "soft failures" (retry) until the connection
81         is established, but allows the application to continue unimpeeded should the
82         connection be slow to set up.
83
84 &di(RMR_BIND_IF) This provides the interface that RMr will bind listen ports to allowing
85         for a single interface to be used rather than listening across all interfaces.
86         This should be the IP address assigned to the interface that RMr should listen
87         on, and if not defined RMr will listen on all interfaces.
88
89 &di(RMR_RTG_SVC) RMr opens a TCP listen socket using the port defined by this
90         environment variable and expects that the route table generator process
91         will connect to this port.
92         If not supplied the port 4561 is used.
93
94 &di(RMR_RTG_ISRAW) Is set to 1 if the route table generator is sending "plain" messages
95         (not using RMr to send messages, 0 if the rtg is using RMr to send. The default
96         is 1 as we don't expect the rtg to use RMr.
97
98 &di(RMR_SEED_RT) This is used to supply a static route table which can be used for
99         debugging, testing, or if no route table generator process is being used to
100         supply the route table.
101         If not defined, no static table is used and RMr will not report &ital(ready)
102         until a table is received.
103 &end_dlist
104
105
106 &h2(SEE ALSO )
107 .ju off
108 rmr_alloc_msg(3),
109 rmr_tralloc_msg(3),
110 rmr_call(3),
111 rmr_free_msg(3),
112 rmr_init(3),
113 rmr_init_trace(3),
114 rmr_get_meid(3),
115 rmr_get_src(3),
116 rmr_get_srcip(3),
117 rmr_get_trace(3),
118 rmr_get_trlen(3),
119 rmr_get_xact(3),
120 rmr_payload_size(3),
121 rmr_rcv_msg(3),
122 rmr_rcv_specific(3),
123 rmr_rts_msg(3),
124 rmr_ready(3),
125 rmr_fib(3),
126 rmr_has_str(3),
127 rmr_tokenise(3),
128 rmr_mk_ring(3),
129 rmr_realloc_payload(3),
130 rmr_ring_free(3),
131 rmr_set_trace(3),
132 rmr_torcv_msg(3),
133 rmr_wh_open(3),
134 rmr_wh_send_msg(3)
135 .ju on
136
137
138 .qu