diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-07 00:14:50 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-07 00:14:50 -0700 |
| commit | ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a (patch) | |
| tree | 1fc9e4dcf8d5c508b1c3c653fff42088228c2513 /src/core/transport.h | |
| parent | 3730260da3744b549aaa1fe13946a674f924f63c (diff) | |
| download | nng-ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a.tar.gz nng-ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a.tar.bz2 nng-ea7d67c33ef28f4155b04b322ebbf778f1dbaa2a.zip | |
Dead code removal (stuff for removed sync transport apis.)
Diffstat (limited to 'src/core/transport.h')
| -rw-r--r-- | src/core/transport.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/transport.h b/src/core/transport.h index 8098e5c2..50da473d 100644 --- a/src/core/transport.h +++ b/src/core/transport.h @@ -48,10 +48,7 @@ struct nni_tran_ep { // ep_connect establishes a connection. It can return errors // NNG_EACCESS, NNG_ECONNREFUSED, NNG_EBADADDR, NNG_ECONNFAILED, - // NNG_ETIMEDOUT, and NNG_EPROTO. The first argument is the - // transport specific endpoint, and the second is a pointer to - // receive a newly created transport-specific pipe structure. - int (*ep_connect_sync)(void *, void **); + // NNG_ETIMEDOUT, and NNG_EPROTO. void (*ep_connect)(void *, nni_aio *); // ep_bind just does the bind() and listen() work, @@ -61,10 +58,7 @@ struct nni_tran_ep { // address, or NNG_EACCESS for permission problems. int (*ep_bind)(void *); - // ep_accept accepts an inbound connection. The first argument - // is the transport-specific endpoint, and the second is a pointer to - // a transport-specific pipe, created by this function. - int (*ep_accept_sync)(void *, void **); + // ep_accept accepts an inbound connection. void (*ep_accept)(void *, nni_aio *); // ep_close stops the endpoint from operating altogether. It does |
