From ec2b1275153487fda661942d9b98aab2567b612e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 2 Jan 2017 14:37:42 -0800 Subject: Begin testing REQ/REP. --- src/nng.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nng.h') diff --git a/src/nng.h b/src/nng.h index 9388f202..a0995595 100644 --- a/src/nng.h +++ b/src/nng.h @@ -59,6 +59,9 @@ NNG_DECL int nng_close(nng_socket *); // nng_protocol returns the protocol number of the socket. uint16_t nng_protocol(nng_socket *); +// nng_peer returns the protocol number for the socket's peer. +uint16_t nng_peer(nng_socket *); + // nng_setopt sets an option for a specific socket. NNG_DECL int nng_setopt(nng_socket *, int, const void *, size_t); -- cgit v1.2.3-70-g09d2