aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-08 12:22:42 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-08 12:22:42 -0800
commit5eb72cbdea39728a67a09fdd6f6d1084dadced67 (patch)
treeaf284318658c05785d321dc726cc1bba51942665 /src/core
parentec2574b09a746709f15d2a3f5de135e29f4bcb52 (diff)
downloadnng-5eb72cbdea39728a67a09fdd6f6d1084dadced67.tar.gz
nng-5eb72cbdea39728a67a09fdd6f6d1084dadced67.tar.bz2
nng-5eb72cbdea39728a67a09fdd6f6d1084dadced67.zip
Add surveyor protocol (no tests yet).
This adds the surveyor protocol, and updates the respondent somewhat. I've switched to using generic names for per-pipe and per-socket protocol data. Hopefully this will make 'cut-n-paste' from other protocol implementations easier.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/protocol.c b/src/core/protocol.c
index 0faebe95..667a6f91 100644
--- a/src/core/protocol.c
+++ b/src/core/protocol.c
@@ -23,6 +23,7 @@ extern nni_proto nni_pub_proto;
extern nni_proto nni_sub_proto;
extern nni_proto nni_push_proto;
extern nni_proto nni_pull_proto;
+extern nni_proto nni_surveyor_proto;
extern nni_proto nni_respondent_proto;
static nni_proto *protocols[] = {
@@ -33,6 +34,7 @@ static nni_proto *protocols[] = {
&nni_sub_proto,
&nni_push_proto,
&nni_pull_proto,
+ &nni_surveyor_proto,
&nni_respondent_proto,
NULL
};