7 This is a CTYPES wrapper around the C rmr library. It requires you have
10 That is, it is not a native re-implementation of the rmr library. This
11 seems to come with pros and cons. On the positive side, wrapping the
12 library was much less work; we only need to wrap the function
13 signatures. Keeping up with the rmr spec is thus also less work, as when
14 new functions are added into the C lib, we only need to again wrap the
17 The downside is this seems to be Linux only currently. This wrapper
18 immediately SIGABRT’s on Mac, and no one yet seems to know why. The
19 other downside is that there are currently some functionality that needs
20 to be “exported” from the C library for this to be fully operational.
21 For example, CTYPES does not have access to C header files, and
22 important constants are defined in the C header files.
24 Possibly evaluate whether we could natively reimplement the API with the nano nng python
25 bindings: https://pypi.org/project/pynng/
30 At the time of this writing (Aug 13 2019) The following C functions
31 are not yet implemented in this library (do we need them?):
35 1. `extern void rmr_free_msg`
36 2. `extern rmr_mbuf_t* rmr_mtosend_msg`
37 3. `extern rmr_mbuf_t* rmr_call` (this has some problems AFAIU from Scott)
38 4. `extern rmr_mbuf_t* rmr_rcv_specific`
39 5. `extern int rmr_get_rcvfd`
43 You can unit test outside of docker, or in docker. Unit testing outside of docker currently requires rmr to be installed.
48 open htmlcov/index.html
50 Or, use the provided Dockerfile (building is enough):
54 docker build -t rmrunittestt:latest -f Dockerfile-Unit-Test .
62 If rmr is *not* compiled on your system, see the below instructions for
63 downloading and compiling rmr. This library expects that the rmr .so
64 files are compiled and available.
71 pip install rmr==X.Y.Z
78 git clone "https://gerrit.o-ran-sc.org/r/ric-plt/lib/rmr"
79 cd rmr/src/bindings/rmr-python/
85 See the ``examples`` directory.
87 Compiling rmr (if not already done on your system)
88 ==================================================
90 (Note, you may or may not need sudo in your final command, depending on
91 permissions to ``/usr/local``. The pack externals option to CMake is
92 needed only if the NNG libary is not already installed on the system,
93 and you do not wish to manually install it.)
97 git clone https://gerrit.oran-osc.org/r/ric-plt/lib/rmr
99 mkdir .build; cd .build; cmake .. -DPACK_EXTERNALS=1; sudo make install