aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-02 14:37:42 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-02 14:37:42 -0800
commitec2b1275153487fda661942d9b98aab2567b612e (patch)
tree4e1457b1bbf57341ea569013892550a988457e09 /src/nng.h
parentb6374f9d9b07c929522066f27ed9a7a05c6bb23b (diff)
downloadnng-ec2b1275153487fda661942d9b98aab2567b612e.tar.gz
nng-ec2b1275153487fda661942d9b98aab2567b612e.tar.bz2
nng-ec2b1275153487fda661942d9b98aab2567b612e.zip
Begin testing REQ/REP.
Diffstat (limited to 'src/nng.h')
-rw-r--r--src/nng.h3
1 files changed, 3 insertions, 0 deletions
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);