aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-10-24 15:26:14 -0700
committerGarrett D'Amore <garrett@damore.org>2017-10-24 16:30:09 -0700
commit4250fc119057eb6a6b534e9c0758488cc5fb034e (patch)
treec64efe1ae1115cf3aacdedf365c11398c8d99ba8 /src/nng.c
parenta7b20c3babd965b12dec8cb5ff0883a4d8d1116d (diff)
downloadnng-4250fc119057eb6a6b534e9c0758488cc5fb034e.tar.gz
nng-4250fc119057eb6a6b534e9c0758488cc5fb034e.tar.bz2
nng-4250fc119057eb6a6b534e9c0758488cc5fb034e.zip
fixes #132 Implement saner notification for file descriptors
This eliminates the "quasi-functional" notify API altogether. The aio framework will be coming soon to replace it. As a bonus, apps (legacy apps) that use the notification FDs will see improved performance, since we don't have to context switch to give them a notification.
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/nng.c b/src/nng.c
index d66c0dcb..9fc99dc3 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -611,48 +611,6 @@ nng_getopt_ms(nng_socket sid, const char *name, nng_duration *valp)
return (nng_getopt(sid, name, valp, &sz));
}
-nng_notify *
-nng_setnotify(nng_socket sid, int mask, nng_notify_func fn, void *arg)
-{
- nni_sock * sock;
- nng_notify *notify;
- int rv;
-
- if ((rv = nni_sock_find(&sock, sid)) != 0) {
- return (NULL);
- }
- notify = nni_sock_notify(sock, mask, fn, arg);
- nni_sock_rele(sock);
- return (notify);
-}
-
-void
-nng_unsetnotify(nng_socket sid, nng_notify *notify)
-{
- nni_sock *sock;
- int rv;
-
- if ((rv = nni_sock_find(&sock, sid)) != 0) {
- return;
- }
- nni_sock_unnotify(sock, notify);
- nni_sock_rele(sock);
-}
-
-nng_socket
-nng_event_socket(nng_event *ev)
-{
- // XXX: FOR NOW.... maybe evnet should contain socket Id
- // instead?
- return (nni_sock_id(ev->e_sock));
-}
-
-int
-nng_event_type(nng_event *ev)
-{
- return (ev->e_type);
-}
-
int
nng_device(nng_socket s1, nng_socket s2)
{