diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-21 20:16:02 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-21 20:16:02 -0800 |
| commit | 68e2aea44d766c6dbe438642d2591875602c78b4 (patch) | |
| tree | 5f5c2db8b976e940305ba8d911208b613e578476 /src/protocol/pubsub | |
| parent | c9593dfc5796a98b94ef516fce662f2e040acffe (diff) | |
| download | nng-68e2aea44d766c6dbe438642d2591875602c78b4.tar.gz nng-68e2aea44d766c6dbe438642d2591875602c78b4.tar.bz2 nng-68e2aea44d766c6dbe438642d2591875602c78b4.zip | |
Added protocol flags (which ones can send, and which can receive).
Diffstat (limited to 'src/protocol/pubsub')
| -rw-r--r-- | src/protocol/pubsub/pub.c | 1 | ||||
| -rw-r--r-- | src/protocol/pubsub/sub.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol/pubsub/pub.c b/src/protocol/pubsub/pub.c index 5617d92c..24dddf4e 100644 --- a/src/protocol/pubsub/pub.c +++ b/src/protocol/pubsub/pub.c @@ -274,6 +274,7 @@ nni_proto nni_pub_proto = { .proto_self = NNG_PROTO_PUB, .proto_peer = NNG_PROTO_SUB, .proto_name = "pub", + .proto_flags = NNI_PROTO_FLAG_SEND, .proto_sock_ops = &nni_pub_sock_ops, .proto_pipe_ops = &nni_pub_pipe_ops, }; diff --git a/src/protocol/pubsub/sub.c b/src/protocol/pubsub/sub.c index cd8dd87c..512765eb 100644 --- a/src/protocol/pubsub/sub.c +++ b/src/protocol/pubsub/sub.c @@ -314,6 +314,7 @@ nni_proto nni_sub_proto = { .proto_self = NNG_PROTO_SUB, .proto_peer = NNG_PROTO_PUB, .proto_name = "sub", + .proto_flags = NNI_PROTO_FLAG_RECV, .proto_sock_ops = &nni_sub_sock_ops, .proto_pipe_ops = &nni_sub_pipe_ops, }; |
