From 13e380343c0eec96a723e7407d59fb7f5d20aba0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 2 Jan 2017 17:35:49 -0800 Subject: 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. --- src/core/socket.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index 8b3c3ff9..5a0dbb84 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -48,6 +48,7 @@ struct nng_socket { extern int nni_sock_open(nni_sock **, uint16_t); extern int nni_sock_close(nni_sock *); extern uint16_t nni_sock_proto(nni_sock *); +extern uint16_t nni_sock_peer(nni_sock *); extern int nni_sock_setopt(nni_sock *, int, const void *, size_t); extern int nni_sock_getopt(nni_sock *, int, void *, size_t *); extern int nni_sock_recvmsg(nni_sock *, nni_msg **, nni_time); -- cgit v1.2.3-70-g09d2