diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-04 02:46:40 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-04 02:46:40 -0800 |
| commit | fb6550a242bb1742ec62202a99d0604ee9069795 (patch) | |
| tree | bd235a8ddf6766dc54c3e47b31dbc7a59802d5da /src/core/socket.c | |
| parent | c17a1dd3f5333da59355ecc3f8788a0396a8f72d (diff) | |
| download | nng-fb6550a242bb1742ec62202a99d0604ee9069795.tar.gz nng-fb6550a242bb1742ec62202a99d0604ee9069795.tar.bz2 nng-fb6550a242bb1742ec62202a99d0604ee9069795.zip | |
Pipeline protocol now entirely callback driven.
Diffstat (limited to 'src/core/socket.c')
| -rw-r--r-- | src/core/socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 52a4d6d9..d58e64ba 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -325,6 +325,9 @@ nni_sock_open(nni_sock **sockp, uint16_t pnum) if (sops->sock_close == NULL) { sops->sock_close = nni_sock_nullop; } + if (sops->sock_open == NULL) { + sops->sock_open = nni_sock_nullop; + } sock->s_pipe_ops = *proto->proto_pipe_ops; pops = &sock->s_pipe_ops; if (pops->pipe_add == NULL) { @@ -404,6 +407,7 @@ nni_sock_open(nni_sock **sockp, uint16_t pnum) nni_thr_run(&sock->s_worker_thr[i]); } + sops->sock_open(sock->s_data); nni_thr_run(&sock->s_reaper); nni_thr_run(&sock->s_notifier); |
