From 1d650869f32c56f6d49d898c38f7525191a60bd1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 4 Jan 2017 02:10:13 -0800 Subject: 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. --- src/core/pipe.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/pipe.h') 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); -- cgit v1.2.3-70-g09d2