diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-19 22:08:17 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-19 22:08:17 -0700 |
| commit | 6091cf7e1c030417e1fd29c66160e71bcbe4f984 (patch) | |
| tree | c95a46550370a06cb10263e77e7419260c83fba5 /src/transport/tcp | |
| parent | 9fe905a8040a7e089233125a003ef8911d98ddbd (diff) | |
| download | nng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.tar.gz nng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.tar.bz2 nng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.zip | |
More interface hiding. (pipe tran data setting).
Diffstat (limited to 'src/transport/tcp')
| -rw-r--r-- | src/transport/tcp/tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c index ad2d398a..e198a927 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -303,7 +303,7 @@ nni_tcp_negotiate(nni_tcp_pipe *pipe) static int -nni_tcp_ep_connect(void *arg, void **pipep) +nni_tcp_ep_connect(void *arg, nni_pipe *npipe) { nni_tcp_ep *ep = arg; nni_tcp_pipe *pipe; @@ -377,7 +377,7 @@ nni_tcp_ep_connect(void *arg, void **pipep) NNI_FREE_STRUCT(pipe); return (rv); } - *pipep = pipe; + nni_pipe_set_tran_data(npipe, pipe); return (0); } @@ -414,7 +414,7 @@ nni_tcp_ep_bind(void *arg) static int -nni_tcp_ep_accept(void *arg, void **pipep) +nni_tcp_ep_accept(void *arg, nni_pipe *npipe) { nni_tcp_ep *ep = arg; nni_tcp_pipe *pipe; @@ -442,7 +442,7 @@ nni_tcp_ep_accept(void *arg, void **pipep) NNI_FREE_STRUCT(pipe); return (rv); } - *pipep = pipe; + nni_pipe_set_tran_data(npipe, pipe); return (0); } |
