aboutsummaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-21 21:41:41 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-21 21:41:41 -0800
commit99a78ade3a6034784e40d5dfa70cc72aa09021ca (patch)
treea1ebe245333e8e52832b647e0f70637b3326ad11 /src/core/socket.h
parent423c776ad9b8a68196bb4d9acfbfd5b7b9c4edc6 (diff)
downloadnng-99a78ade3a6034784e40d5dfa70cc72aa09021ca.tar.gz
nng-99a78ade3a6034784e40d5dfa70cc72aa09021ca.tar.bz2
nng-99a78ade3a6034784e40d5dfa70cc72aa09021ca.zip
Adds NNG_OPT_SENDFD and NNG_OPT_RECVFD socket options (untested).
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h5
1 files changed, 5 insertions, 0 deletions
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.
};