summaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-11 22:38:21 -0800
committerGarrett D'Amore <garrett@damore.org>2017-03-11 22:38:21 -0800
commit3d4be5126f91978b7d7349de79334ecfc8fc2afe (patch)
treec8cfadbb1096e99cad21bddbb9fe9ff7b5dd175a /src/nng.c
parent3d90bae8eda62fecdf367932fca591b965838e20 (diff)
downloadnng-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nng.c b/src/nng.c
index 17938d09..9ca21159 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -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);
}