diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-11 22:38:21 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-11 22:38:21 -0800 |
| commit | 3d4be5126f91978b7d7349de79334ecfc8fc2afe (patch) | |
| tree | c8cfadbb1096e99cad21bddbb9fe9ff7b5dd175a /src/nng.c | |
| parent | 3d90bae8eda62fecdf367932fca591b965838e20 (diff) | |
| download | nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.tar.gz nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.tar.bz2 nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.zip | |
Notification working - separate thread now.
Diffstat (limited to 'src/nng.c')
| -rw-r--r-- | src/nng.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -313,7 +313,7 @@ nng_setnotify(nng_socket sid, int mask, nng_notify_func fn, void *arg) if ((rv = nni_sock_hold(&sock, sid)) != 0) { return (NULL); } - notify = nni_add_notify(sock, mask, fn, arg); + notify = nni_sock_notify(sock, mask, fn, arg); nni_sock_rele(sock); return (notify); } @@ -328,7 +328,7 @@ nng_unsetnotify(nng_socket sid, nng_notify *notify) if ((rv = nni_sock_hold(&sock, sid)) != 0) { return; } - nni_rem_notify(sock, notify); + nni_sock_unnotify(sock, notify); nni_sock_rele(sock); } |
