aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/reqrep0/xrep_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp/protocol/reqrep0/xrep_test.c')
-rw-r--r--src/sp/protocol/reqrep0/xrep_test.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/sp/protocol/reqrep0/xrep_test.c b/src/sp/protocol/reqrep0/xrep_test.c
index e3ba0f94..a00f78f7 100644
--- a/src/sp/protocol/reqrep0/xrep_test.c
+++ b/src/sp/protocol/reqrep0/xrep_test.c
@@ -1,5 +1,5 @@
//
-// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -10,6 +10,11 @@
#include "nng/nng.h"
#include <nuts.h>
+#define REP0_SELF 0x31
+#define REP0_PEER 0x30
+#define REP0_SELF_NAME "rep"
+#define REP0_PEER_NAME "req"
+
static void
test_xrep_identity(void)
{
@@ -24,10 +29,10 @@ test_xrep_identity(void)
NUTS_PASS(nng_socket_proto_name(s, &n1));
NUTS_PASS(nng_socket_peer_name(s, &n2));
NUTS_CLOSE(s);
- NUTS_TRUE(p1 == NNG_REP0_SELF);
- NUTS_TRUE(p2 == NNG_REP0_PEER);
- NUTS_MATCH(n1, NNG_REP0_SELF_NAME);
- NUTS_MATCH(n2, NNG_REP0_PEER_NAME);
+ NUTS_TRUE(p1 == REP0_SELF);
+ NUTS_TRUE(p2 == REP0_PEER);
+ NUTS_MATCH(n1, REP0_SELF_NAME);
+ NUTS_MATCH(n2, REP0_PEER_NAME);
}
static void