diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-06-06 09:10:07 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-06-06 09:10:07 -0700 |
| commit | 4771d04fb589c406ff8b2fc1b4edf93b2df42515 (patch) | |
| tree | 4d98c382b90f67eb158e613d6d0819201c6ed616 /src/core/socket.h | |
| parent | 46a559cbdff02d8f9ca48bd918c17c33336de3a1 (diff) | |
| download | nng-4771d04fb589c406ff8b2fc1b4edf93b2df42515.tar.gz nng-4771d04fb589c406ff8b2fc1b4edf93b2df42515.tar.bz2 nng-4771d04fb589c406ff8b2fc1b4edf93b2df42515.zip | |
Endpoint now holds a reference on the socket.
Diffstat (limited to 'src/core/socket.h')
| -rw-r--r-- | src/core/socket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/socket.h b/src/core/socket.h index 5fc3d593..247513a0 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -85,6 +85,9 @@ extern void nni_sock_unlock(nni_sock *); extern nni_notify *nni_sock_notify(nni_sock *, int, nng_notify_func, void *); extern void nni_sock_unnotify(nni_sock *, nni_notify *); +extern int nni_sock_add_ep(nni_sock *, nni_ep *); +extern void nni_sock_rem_ep(nni_sock *, nni_ep *); + // nni_sock_pipe_add is called by the pipe to register the pipe with // with the socket. The pipe is added to the idle list. The protocol // private pipe data is initialized as well. |
