aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-02 17:35:49 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-02 17:35:49 -0800
commit13e380343c0eec96a723e7407d59fb7f5d20aba0 (patch)
treef50fdea3117c64d460fc82ce7978b6b4253250cf /src/nng.h
parentec2b1275153487fda661942d9b98aab2567b612e (diff)
downloadnng-13e380343c0eec96a723e7407d59fb7f5d20aba0.tar.gz
nng-13e380343c0eec96a723e7407d59fb7f5d20aba0.tar.bz2
nng-13e380343c0eec96a723e7407d59fb7f5d20aba0.zip
Fixes to enable REQ/REP to operate.
This uncovered a few problems - inproc was not moving the headers to the body on transmit, and the message chunk allocator had a serious bug leading to memory corruption. I've also added a message dumper, which turns out to be incredibly useful during debugging.
Diffstat (limited to 'src/nng.h')
-rw-r--r--src/nng.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nng.h b/src/nng.h
index a0995595..edb2c66a 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -98,13 +98,13 @@ NNG_DECL int nng_unsetnotify(nng_socket *, nng_notify *);
// NNG_EVENT_ENDPT_ADD - An endpoint is added to the socket.
// NNG_EVENT_ENDPT_REM - An endpoint is removed from the socket.
#define NNG_EVENT_BIT(x) (1U << (x))
-#define NNG_EVENT_RECV NNG_EVENT_BIT(0)
-#define NNG_EVENT_SEND NNG_EVENT_BIT(1)
-#define NNG_EVENT_ERROR NNG_EVENT_BIT(2)
-#define NNG_EVENT_PIPE_ADD NNG_EVENT_BIT(3)
-#define NNG_EVENT_PIPE_REM NNG_EVENT_BIT(4)
-#define NNG_EVENT_ENDPOINT_ADD NNG_EVENT_BIT(5)
-#define NNG_EVENT_ENDPOINT_REM NNG_EVENT_BIT(6)
+#define NNG_EVENT_RECV NNG_EVENT_BIT(0)
+#define NNG_EVENT_SEND NNG_EVENT_BIT(1)
+#define NNG_EVENT_ERROR NNG_EVENT_BIT(2)
+#define NNG_EVENT_PIPE_ADD NNG_EVENT_BIT(3)
+#define NNG_EVENT_PIPE_REM NNG_EVENT_BIT(4)
+#define NNG_EVENT_ENDPOINT_ADD NNG_EVENT_BIT(5)
+#define NNG_EVENT_ENDPOINT_REM NNG_EVENT_BIT(6)
// The following functions return more detailed information about the event.
// Some of the values will not make sense for some event types, in which case