From 68e2aea44d766c6dbe438642d2591875602c78b4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 21 Jan 2017 20:16:02 -0800 Subject: Added protocol flags (which ones can send, and which can receive). --- src/protocol/pipeline/pull.c | 1 + src/protocol/pipeline/push.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src/protocol/pipeline') diff --git a/src/protocol/pipeline/pull.c b/src/protocol/pipeline/pull.c index ca15efef..5b3efd4d 100644 --- a/src/protocol/pipeline/pull.c +++ b/src/protocol/pipeline/pull.c @@ -155,6 +155,7 @@ nni_proto nni_pull_proto = { .proto_self = NNG_PROTO_PULL, .proto_peer = NNG_PROTO_PUSH, .proto_name = "pull", + .proto_flags = NNI_PROTO_FLAG_RECV, .proto_pipe_ops = &nni_pull_pipe_ops, .proto_sock_ops = &nni_pull_sock_ops, }; diff --git a/src/protocol/pipeline/push.c b/src/protocol/pipeline/push.c index 1d1e6d88..8794d84f 100644 --- a/src/protocol/pipeline/push.c +++ b/src/protocol/pipeline/push.c @@ -313,6 +313,7 @@ nni_proto nni_push_proto = { .proto_self = NNG_PROTO_PUSH, .proto_peer = NNG_PROTO_PULL, .proto_name = "push", + .proto_flags = NNI_PROTO_FLAG_SEND, .proto_pipe_ops = &nni_push_pipe_ops, .proto_sock_ops = &nni_push_sock_ops, }; -- cgit v1.2.3-70-g09d2