From 99a78ade3a6034784e40d5dfa70cc72aa09021ca Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 21 Jan 2017 21:41:41 -0800 Subject: Adds NNG_OPT_SENDFD and NNG_OPT_RECVFD socket options (untested). --- src/core/socket.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index 2f34a038..42f42371 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -10,6 +10,7 @@ #ifndef CORE_SOCKET_H #define CORE_SOCKET_H + // NB: This structure is supplied here for use by the CORE. Use of this library // OUSIDE of the core is STRICTLY VERBOTEN. NO DIRECT ACCESS BY PROTOCOLS OR // TRANSPORTS. @@ -26,6 +27,7 @@ struct nni_socket { uint16_t s_protocol; uint16_t s_peer; + uint32_t s_flags; nni_proto_pipe_ops s_pipe_ops; nni_proto_sock_ops s_sock_ops; @@ -62,6 +64,9 @@ struct nni_socket { nni_event s_recv_ev; // Event for readability nni_event s_send_ev; // Event for sendability + nni_notifyfd s_send_fd; + nni_notifyfd s_recv_fd; + uint32_t s_nextid; // Next Pipe ID. }; -- cgit v1.2.3-70-g09d2