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/reqrep/rep.c | 1 + src/protocol/reqrep/req.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src/protocol/reqrep') diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c index a34f6eea..36535fa4 100644 --- a/src/protocol/reqrep/rep.c +++ b/src/protocol/reqrep/rep.c @@ -414,6 +414,7 @@ nni_proto nni_rep_proto = { .proto_self = NNG_PROTO_REP, .proto_peer = NNG_PROTO_REQ, .proto_name = "rep", + .proto_flags = NNI_PROTO_FLAG_SENDRECV, .proto_sock_ops = &nni_rep_sock_ops, .proto_pipe_ops = &nni_rep_pipe_ops, }; diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c index 787997e8..5d87e30d 100644 --- a/src/protocol/reqrep/req.c +++ b/src/protocol/reqrep/req.c @@ -406,6 +406,7 @@ nni_proto nni_req_proto = { .proto_self = NNG_PROTO_REQ, .proto_peer = NNG_PROTO_REP, .proto_name = "req", + .proto_flags = NNI_PROTO_FLAG_SENDRECV, .proto_sock_ops = &nni_req_sock_ops, .proto_pipe_ops = &nni_req_pipe_ops, }; -- cgit v1.2.3-70-g09d2