aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix/posix_impl.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-11 12:55:46 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-12 20:47:24 -0800
commitd615c5e51268a23887e2d29b5828a0447ba5409b (patch)
treeb990cbbb5c56c99f445f0989783babd203610daa /src/platform/posix/posix_impl.h
parent5637b36e2ed59a0c65384804b780e323c9c451c0 (diff)
downloadnng-d615c5e51268a23887e2d29b5828a0447ba5409b.tar.gz
nng-d615c5e51268a23887e2d29b5828a0447ba5409b.tar.bz2
nng-d615c5e51268a23887e2d29b5828a0447ba5409b.zip
Add IPC (UNIX domain sockets) for POSIX, and test suite.
Diffstat (limited to 'src/platform/posix/posix_impl.h')
-rw-r--r--src/platform/posix/posix_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h
index 9825b151..c155e15c 100644
--- a/src/platform/posix/posix_impl.h
+++ b/src/platform/posix/posix_impl.h
@@ -20,6 +20,7 @@
#define PLATFORM_POSIX_ALLOC
#define PLATFORM_POSIX_DEBUG
#define PLATFORM_POSIX_CLOCK
+#define PLATFORM_POSIX_IPC
#define PLATFORM_POSIX_NET
#define PLATFORM_POSIX_RANDOM
#define PLATFORM_POSIX_THREAD
@@ -40,6 +41,14 @@ struct nni_plat_tcpsock {
};
#endif
+#ifdef PLATFORM_POSIX_IPC
+struct nni_plat_ipcsock {
+ int fd;
+ int devnull; // used for shutting down blocking accept()
+ char * unlink; // path to unlink at termination
+};
+#endif
+
// Define types that this platform uses.
#ifdef PLATFORM_POSIX_THREAD