diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-10-24 15:26:14 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-10-24 16:30:09 -0700 |
| commit | 4250fc119057eb6a6b534e9c0758488cc5fb034e (patch) | |
| tree | c64efe1ae1115cf3aacdedf365c11398c8d99ba8 /src/core/event.h | |
| parent | a7b20c3babd965b12dec8cb5ff0883a4d8d1116d (diff) | |
| download | nng-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/core/event.h')
| -rw-r--r-- | src/core/event.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/core/event.h b/src/core/event.h deleted file mode 100644 index 9536d206..00000000 --- a/src/core/event.h +++ /dev/null @@ -1,35 +0,0 @@ -// -// Copyright 2017 Garrett D'Amore <garrett@damore.org> -// Copyright 2017 Capitar IT Group BV <info@capitar.com> -// -// This software is supplied under the terms of the MIT License, a -// copy of which should be located in the distribution where this -// file was obtained (LICENSE.txt). A copy of the license may also be -// found online at https://opensource.org/licenses/MIT. -// - -#ifndef CORE_EVENT_H -#define CORE_EVENT_H - -#include "core/defs.h" -#include "core/list.h" - -struct nng_event { - int e_type; - nni_sock *e_sock; - nni_ep * e_ep; - nni_pipe *e_pipe; -}; - -struct nng_notify { - nng_notify_func n_func; - void * n_arg; - int n_type; - nni_sock * n_sock; - nni_aio * n_aio; -}; - -extern void nni_ev_init(nni_event *, int, nni_sock *); -extern void nni_ev_fini(nni_event *); - -#endif // CORE_EVENT_H |
