From 93f3562bb495d7a8a568aa77638fdd699d97a3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 4 Mar 2020 13:52:19 +0100 Subject: [PATCH] Updated networking flow (markdown) --- networking-flow.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/networking-flow.md b/networking-flow.md index 2fa69af..b571395 100644 --- a/networking-flow.md +++ b/networking-flow.md @@ -53,3 +53,5 @@ vendor/nim-libp2p/libp2p/multistream.nim: - awaits Connection.readLp() (without the trailing newline; this header is ignored) - if there's a `proto`, awaits Connection.readLp() - if it's the same string as the requested protocol, it returns it - if the response was "\n", it tries any other proto in that seq +- MultistreamSelect.handle(Connection) + - in a loop: awaits Connection.readLp() for a proto string and if it matches with a MultistreamSelect.handlers instance, it calls HandleHolder.protocol.handler(Connection, proto) - this handler is an LPProtoHandler proc type and it's Switch.upgradeIncoming.securedHandler() or a MuxerProvider.handler() from Switch.muxers \ No newline at end of file