Nanomsg transport for interfacing with the OpenFabrics Interfaces (OFI) Library (libfabric).
- The current version handles only IPV4 address families.
- The keepalive mechanism is not yet implemented in the current state of the devel branch
After patching your nanomsg sources, it will make the ofi
transport available for use. This endpoint format is ofi://[IP Address]:[Port]
.
For example, you can test the ofi
transport with the nanocat
utility that comes with nanomsg
.
~$ nanocat --pull --bind ofi://127.0.0.1:5050 -A&
OFI: Using fabric=IP, provider=sockets
~$ nanocat --push --connect ofi://127.0.0.1:5050 -D Hello
OFI: Using fabric=IP, provider=sockets
Hello
-
Make sure you have libfabric installed in your system.
-
Download the latest sources of nanonsg:
wget https://github.com/nanomsg/nanomsg/releases/download/0.8-beta/nanomsg-0.8-beta.tar.gz tar -zxf nanomsg-0.8-beta.tar.gz NANOMSG_SROUCES=$(pwd)/nanomsg-0.8-beta
-
Check-out
nanomsg-transport-ofi
:git clone https://github.com/wavesoft/nanomsg-transport-ofi.git
-
Patch the sources of nanomsg, using the
patch-nanomsg.sh
script that comes with this project../patch-nanomsg.sh $NANOMSG_SROUCES
-
You can now compile nanomsg:
cd $NANOMSG_SROUCES ./configure && make sudo make install