diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-04 02:10:13 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-04 02:10:13 -0800 |
| commit | 1d650869f32c56f6d49d898c38f7525191a60bd1 (patch) | |
| tree | 7a27136068de192a3166ce40ea7a541f68be9d96 /src/core/pipe.h | |
| parent | 856c5c8e2aa4e07b2b628dd194a63ae13dae7ae3 (diff) | |
| download | nng-1d650869f32c56f6d49d898c38f7525191a60bd1.tar.gz nng-1d650869f32c56f6d49d898c38f7525191a60bd1.tar.bz2 nng-1d650869f32c56f6d49d898c38f7525191a60bd1.zip | |
Initial cut at TCP, totally untested beyond compilation.
This also adds checks in the protocols to verify that pipe peers
are of the proper protocol.
Diffstat (limited to 'src/core/pipe.h')
| -rw-r--r-- | src/core/pipe.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h index a8d7b286..6ebb7090 100644 --- a/src/core/pipe.h +++ b/src/core/pipe.h @@ -44,6 +44,8 @@ extern int nni_pipe_create(nni_pipe **, nni_ep *); extern void nni_pipe_destroy(nni_pipe *); +extern uint16_t nni_pipe_proto(nni_pipe *); +extern uint16_t nni_pipe_peer(nni_pipe *); extern int nni_pipe_start(nni_pipe *); extern int nni_pipe_getopt(nni_pipe *, int, void *, size_t *sizep); |
