E. Scott Daniels [Tue, 23 Apr 2019 12:59:28 +0000 (12:59 +0000)]
doc(code): Indent fixes and whitespace cleanup
Change-Id: I05a1cd543ba0603446244122337276028e199382
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Mon, 22 Apr 2019 19:30:49 +0000 (19:30 +0000)]
fix(routes): Allow RTS without specific rt entry
In order to return a message to the original sender (rts) the
sender's hostname:port was required to be in the route table
for the instance. This might not always be the case as an
application may need to send messages to another only in an RTS
capacity and not as a message type routed message. Threfore the
requirement that an application host:port be listed in the route
table for this type of relationship isn't needed.
With this change, an application will be able to call rmr_rts_msg()
for any received message regardless of whether the sender is listed
in the local route table.
Change-Id: I9ab04a874524369dc218bacade0e34f7ea13ea95
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Mon, 22 Apr 2019 17:04:10 +0000 (17:04 +0000)]
test(app): Add test application base
Added two simple test applications (a sender and receiver)
with a driver script to test RMr message passing funcitons.
These apps verify correctness of messages sent at either
high or low message rates.
Change-Id: I0b1b2c752e7c01b1b510cb44582532bc1f276901
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Mon, 22 Apr 2019 16:51:37 +0000 (16:51 +0000)]
fix(API): Sync the timeout specifications
The timeout specification was millisecond for all but one
place in the nanomsg code. All references are now ms.
Change-Id: I10aa4a5a51c2d9169d43cb2aa4ff7b709974b067
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Fri, 19 Apr 2019 21:12:25 +0000 (21:12 +0000)]
feat(API): Add subscription id and source retrieval
Subscription id is needed for applications which wish to route
messages based on subscription rather than message type. This
field is now available to user applications by the sub_id
field in the message. Subscription based applications may also
need to have access to the message source, so a get source
function has been added.
Change-Id: I796392a6e3899e8f01a3292796e54e7abd56c32f
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Fri, 19 Apr 2019 19:51:41 +0000 (19:51 +0000)]
feat(doc): Add trace man pages
Change-Id: I51493fc1322ffc07e1fc9a5e9be4f7ce54c88994
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Thu, 18 Apr 2019 14:01:16 +0000 (14:01 +0000)]
feat(API): Add trace data functions
The trace data in the RMr header can now be set and
retrieved by the user programme with the new functions.
Change-Id: Ie00381d3671f906c703ca7d9048cf4a1a6d6194d
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Finish trace functions for nng
Change-Id: Ie7dda5d13d0d53e57347655cbb27d0fc13173d28
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Switch to address macro from offset
Change-Id: I560d696a7e5e743437b14d2737a3dde8d12c2aa9
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Set version manually
The CI process _should_ set a tag when the code is merged
and we will pull that tag and use it as the maj.min.patch
version. However, the CI process is not doing this, so
we are forced to mantain the version number in the CMake
file for now. This commit sets that version to 1.0.17.
Change-Id: I577efbd64bc0711244a1dbc1ae27eb9581b6d7d6
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Add trace functions for nanomsg
Change-Id: If640b7ee8a4996d8c324bbdd2cb4a85f68a3cc73
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Wed, 17 Apr 2019 16:31:16 +0000 (16:31 +0000)]
test(all): Add additional log messages
Change-Id: I2e5478302960d8125e961f4e1c45054b926c7597
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Wed, 17 Apr 2019 14:53:34 +0000 (14:53 +0000)]
test(all): Add toplevel build and test script
Change-Id: Ie34a4418c8e03103ee44a25b228cadf910237f0c
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Tue, 16 Apr 2019 20:47:54 +0000 (20:47 +0000)]
test(unit): Extend unit tests
Change-Id: I28148ce6ef070ad85cb80fc21f090ff47e856d79
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Fri, 12 Apr 2019 15:14:40 +0000 (15:14 +0000)]
feat(msgs): Add header v2 support
Change-Id: Iebfb91b0b42d99e1cc54fa012d1bdfc24d7d57c2
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Nanomsg changes for v2 header
Change-Id: I2d01c346e743556b04c43db9885132ee1107c059
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Fix warning message
Change-Id: Iafa54e4701b00ba7b7e2ee88b531c66482f40d46
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Remvoe test/debug/RBF things
Change-Id: I40feef30b9622fc42299ab50b5badc558796e910
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Add tag based versioning to cmake file
Change-Id: I2a37c4cd793ff298af37898371025d1b48dd9990
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Tue, 9 Apr 2019 20:40:03 +0000 (20:40 +0000)]
Add license info to example files
Change-Id: I0b4ef44bb6cc3ad55383a918949a1e2f744c2dbe
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Tue, 9 Apr 2019 20:25:58 +0000 (20:25 +0000)]
Fix possible allocation of 0 len buffer in rtc
It was possible for the route table collector to allocate
a zero length buffer to copy a received message into.
Change-Id: Ie270f7fe9f721661f59713eaf15500762b2b3253
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
E. Scott Daniels [Tue, 9 Apr 2019 19:59:42 +0000 (19:59 +0000)]
Fix potential nil pointer error in msg allocation
Header pointer returned by NNG function was not checked for
nil value and could result in nil pointer use.
Change-Id: Ib30c148c27a0304fe10b85fe2e9cb2a6349ca26e
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Ashwin Sridharan [Thu, 4 Apr 2019 12:31:35 +0000 (08:31 -0400)]
Added submodule information
Change-Id: I2cd423a3b387990d40b8962f929dd5a89d08d181
Signed-off-by: Ashwin Sridharan <hiltunen@att.com>
Ashwin Sridharan [Thu, 4 Apr 2019 10:48:11 +0000 (06:48 -0400)]
Adding submodule locations
Change-Id: Idb0f5a70f7c570f53665972598275c4c1375d7b8
Signed-off-by: Ashwin Sridharan <hiltunen@att.com>
Ashwin Sridharan [Wed, 3 Apr 2019 20:47:02 +0000 (16:47 -0400)]
Initial commit of RMR Library
Change-Id: Ic4c998b056e8759f4a47a9a8c50c77e88df0f325
Signed-off-by: Ashwin Sridharan <hiltunen@att.com>
Andrew Grimberg [Thu, 21 Mar 2019 23:55:42 +0000 (23:55 +0000)]
Initial empty repository