feat(routing): Support session based routing
The session id field in a message buffer is now used
directly for routing.
Change-Id: I3634c97588b11172db964b2d06c96c317d8b8ae3
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Routing table entry changes to pick up subid
Change-Id: If08dc21aae4acaab350ba75a8854ad2f24007b03
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Fix unit test for rmr_call
It was not properly setting message type and now that RMr
ensures that invalid message type is set by default on a newly
created message this was causing unit test to fail.
Change-Id: I50f08d1038ea7fca2a070cdd949657bfbc25f3fd
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Add application level tests
Added round robin and multi group application level
test scripts.
Change-Id: Ic6aebaf3bc1edb763decc7fd0aebb09df116f20c
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
NNG based sub-id support added
Change-Id: I0d36b55bb90a315ba94c9476df88e2c7eac6c383
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Correct bug in app test script
Change-Id: I5b4a9f32aa1bc2907f320b8ad4628e0948062904
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Nano sub-id changes and unit test updates
Change-Id: Ia69f2fb33de3bbee2f33f9a4c5def779c872e52c
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change nil-sub_id key to high order key
If there is no sub-id, then the key is based only on the
message type, but to allow for a sub-id == 0 the key
when there is no subscription id must be set to
0xffffffff00000000 + msg type.
New version for deb is 1.0.19
Change-Id: I55f89d368466a0137fdea99410c76ba72e1923ab
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
diff --git a/test/rt_static_test.c b/test/rt_static_test.c
index 129eec1..710c75e 100644
--- a/test/rt_static_test.c
+++ b/test/rt_static_test.c
@@ -228,5 +228,15 @@
}
*/
+ state = uta_link2( "worm", NULL, NULL );
+ errors += fail_if_true( state, "link2 did not return false when given nil pointers" );
+
+ state = uta_epsock_rr( rt, 122, 0, NULL, NULL );
+ errors += fail_if_true( state, "uta_epsock_rr returned bad state when given nil socket pointer" );
+
+ rt = uta_rt_init( ); // get us a route table
+ state = uta_epsock_rr( rt, 0, -1, NULL, &nn_sock );
+ errors += fail_if_true( state, "uta_epsock_rr returned bad state (true) when given negative group number" );
+
return !!errors; // 1 or 0 regardless of count
}