aboutsummaryrefslogtreecommitdiff
path: root/src/core/transport.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-04 02:10:13 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-04 02:10:13 -0800
commit1d650869f32c56f6d49d898c38f7525191a60bd1 (patch)
tree7a27136068de192a3166ce40ea7a541f68be9d96 /src/core/transport.c
parent856c5c8e2aa4e07b2b628dd194a63ae13dae7ae3 (diff)
downloadnng-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/transport.c')
-rw-r--r--src/core/transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/transport.c b/src/core/transport.c
index b6ebe3c2..cf9f38c3 100644
--- a/src/core/transport.c
+++ b/src/core/transport.c
@@ -14,9 +14,11 @@
// For now the list of transports is hard-wired. Adding new transports
// to the system dynamically is something that might be considered later.
extern nni_tran nni_inproc_tran;
+extern nni_tran nni_tcp_tran;
static nni_tran *transports[] = {
&nni_inproc_tran,
+ &nni_tcp_tran,
NULL
};