aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-12-29 19:29:14 -0800
committerGarrett D'Amore <garrett@damore.org>2018-12-31 14:20:08 -0800
commit97118a423a48ecea816f37cb86378c5bafba2d51 (patch)
treedf9e70d0e5e48f3ab69ca3351171003c2b63ed38 /src/core
parent27b7827532abcbdbecc54795da5b5ac66e7f5e9f (diff)
downloadnng-97118a423a48ecea816f37cb86378c5bafba2d51.tar.gz
nng-97118a423a48ecea816f37cb86378c5bafba2d51.tar.bz2
nng-97118a423a48ecea816f37cb86378c5bafba2d51.zip
fixes #834 Simplify IPC internal API & update
This also makes some smaller related changes to use the new nni_type instead of nni_opt_type.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/options.c1
-rw-r--r--src/core/options.h1
-rw-r--r--src/core/platform.h35
3 files changed, 3 insertions, 34 deletions
diff --git a/src/core/options.c b/src/core/options.c
index 097b92b2..23118116 100644
--- a/src/core/options.c
+++ b/src/core/options.c
@@ -1,6 +1,7 @@
//
// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
+// Copyright 2018 Devolutions <info@devolutions.net>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
diff --git a/src/core/options.h b/src/core/options.h
index c0d5b23d..9c5d4817 100644
--- a/src/core/options.h
+++ b/src/core/options.h
@@ -1,6 +1,7 @@
//
// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
+// Copyright 2018 Devolutions <info@devolutions.net>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
diff --git a/src/core/platform.h b/src/core/platform.h
index b6916b2e..58955a3a 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -260,7 +260,7 @@ extern int nni_tcp_conn_sockname(nni_tcp_conn *, nni_sockaddr *);
extern int nni_tcp_conn_set_nodelay(nni_tcp_conn *, bool);
// nni_tcp_conn_set_keepalive indicates that the TCP pipe should send
-// keepalive probes. Tuning of these keepalives is current unsupported.
+// keepalive probes. Tuning of these keepalives is currently unsupported.
extern int nni_tcp_conn_set_keepalive(nni_tcp_conn *, bool);
// nni_tcp_dialer_init creates a new dialer object.
@@ -361,21 +361,6 @@ extern void nni_ipc_conn_send(nni_ipc_conn *, nni_aio *);
// receive zero bytes.) The platform may modify the iovs.
extern void nni_ipc_conn_recv(nni_ipc_conn *, nni_aio *);
-// nni_ipc_conn_get_peer_uid obtains the peer user id, if possible.
-// NB: Only POSIX systems support user IDs.
-extern int nni_ipc_conn_get_peer_uid(nni_ipc_conn *, uint64_t *);
-
-// nni_ipc_conn_get_peer_gid obtains the peer group id, if possible.
-// NB: Only POSIX systems support group IDs.
-extern int nni_ipc_conn_get_peer_gid(nni_ipc_conn *, uint64_t *);
-
-// nni_ipc_conn_get_peer_pid obtains the peer process id, if possible.
-extern int nni_ipc_conn_get_peer_pid(nni_ipc_conn *, uint64_t *);
-
-// nni_ipc_conn_get_peer_zoneid obtains the peer zone id, if possible.
-// NB: Only illumos & SunOS systems have the notion of "zones".
-extern int nni_ipc_conn_get_peer_zoneid(nni_ipc_conn *, uint64_t *);
-
// nni_ipc_conn_setopt is like setsockopt, but uses string names. These
// are the same names from the IPC transport, generally. There are no
// options that are generally settable on an IPC connection.
@@ -437,24 +422,6 @@ extern int nni_ipc_listener_listen(nni_ipc_listener *, const nni_sockaddr *);
// associated with the remote peer.
extern void nni_ipc_listener_accept(nni_ipc_listener *, nni_aio *);
-// nni_ipc_listener_set_permissions sets UNIX style permissions
-// on the named pipes. This basically just does a chmod() on the
-// named pipe, and is only supported o the server side, and only on
-// systems that support this (POSIX, not Windows). Note that changing
-// ownership is not supported at this time. Most systems use only
-// 16-bits, the lower 12 of which are user, group, and other, e.g.
-// 0640 gives read/write access to user, read to group, and prevents
-// any other user from accessing it. On platforms without this support,
-// ENOTSUP is returned.
-extern int nni_ipc_listener_set_permissions(nni_ipc_listener *, int);
-
-// nni_ipc_listener_set_security_descriptor sets the Windows security
-// descriptor. This is *only* supported for Windows platforms. All
-// others return NNG_ENOTSUP. The void argument is a pointer to
-// a SECURITY_DESCRIPTOR object, and must be valid.
-extern int nni_ipc_listener_set_security_descriptor(
- nni_ipc_listener *, void *);
-
// nni_ipc_listener_getopt is used to get options from the listener.
// The only valid option is NNG_OPT_LOCADDR, which will only have
// a valid value if the socket is bound, otherwise the value returned