aboutsummaryrefslogtreecommitdiff
path: root/src/core/transport.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-19 22:08:17 -0700
committerGarrett D'Amore <garrett@damore.org>2017-03-19 22:08:17 -0700
commit6091cf7e1c030417e1fd29c66160e71bcbe4f984 (patch)
treec95a46550370a06cb10263e77e7419260c83fba5 /src/core/transport.h
parent9fe905a8040a7e089233125a003ef8911d98ddbd (diff)
downloadnng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.tar.gz
nng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.tar.bz2
nng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.zip
More interface hiding. (pipe tran data setting).
Diffstat (limited to 'src/core/transport.h')
-rw-r--r--src/core/transport.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/transport.h b/src/core/transport.h
index 83ec3121..65cd775f 100644
--- a/src/core/transport.h
+++ b/src/core/transport.h
@@ -46,11 +46,10 @@ struct nni_tran_ep {
// The endpoint will already have been closed.
void (*ep_fini)(void *);
- // ep_connect establishes a connection, and creates a new pipe,
- // which is returned in the final argument. It can return errors
+ // ep_connect establishes a connection. It can return errors
// NNG_EACCESS, NNG_ECONNREFUSED, NNG_EBADADDR, NNG_ECONNFAILED,
// NNG_ETIMEDOUT, and NNG_EPROTO.
- int (*ep_connect)(void *, void **);
+ int (*ep_connect)(void *, nni_pipe *);
// ep_bind just does the bind() and listen() work,
// reserving the address but not creating any connections.
@@ -59,9 +58,8 @@ struct nni_tran_ep {
// address, or NNG_EACCESS for permission problems.
int (*ep_bind)(void *);
- // ep_accept accepts an inbound connection, and creates
- // a transport pipe, which is returned in the final argument.
- int (*ep_accept)(void *, void **);
+ // ep_accept accepts an inbound connection.
+ int (*ep_accept)(void *, nni_pipe *);
// ep_close stops the endpoint from operating altogether. It does
// not affect pipes that have already been created.