aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.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/platform.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/platform.h')
-rw-r--r--src/core/platform.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/platform.h b/src/core/platform.h
index 14b3aaed..b1e824e2 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -266,15 +266,15 @@ extern void nni_plat_seed_prng(void *, size_t);
// just provide the same value twice.
extern int nni_plat_pipe_open(int *, int *);
-// nni_plat_pipe_push pushses a notification to the pipe. Usually this
+// nni_plat_pipe_raise pushes a notification to the pipe. Usually this
// will just be a non-blocking attempt to write a single byte. It may
// however use any other underlying system call that is appropriate.
-extern void nni_plat_pipe_push(int);
+extern void nni_plat_pipe_raise(int);
-// nni_plat_pipe_pull pulls a notification from the pipe. Usually this
-// will just be a non-blocking read. (The pull should attempt to read
-// all data on the pipe.)
-extern void nni_plat_pipe_pull(int);
+// nni_plat_pipe_clear clears all notifications from the pipe. Usually this
+// will just be a non-blocking read. (The call should attempt to read
+// all data on a pipe, for example.)
+extern void nni_plat_pipe_clear(int);
// nni_plat_pipe_close closes both pipes that were provided by the open
// routine.