From 71b2da777fcb1c47cf3006805626abfa2744401f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Tue, 3 Mar 2020 23:52:52 +0100 Subject: [PATCH] Updated networking flow (markdown) --- networking-flow.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/networking-flow.md b/networking-flow.md index 7f85da2..1b722d2 100644 --- a/networking-flow.md +++ b/networking-flow.md @@ -45,7 +45,11 @@ vendor/nim-libp2p/libp2p/switch.nim: vendor/nim-libp2p/libp2p/multistream.nim: +- MultistreamSelect.select(Connection) + - calls MultistreamSelect.select(Connection, "") +- MultistreamSelect.select(Connection, proto: string) + - calls MultistreamSelect.select(Connection, @[]) - MultistreamSelect.select(Connection, proto: seq[string]) - awaits Connection.write(codec: string) - if there's a `proto` argument, it awaits Connection.writeLp() - only on the first seq item - - awaits and returns Connection.readLp() \ No newline at end of file + - awaits and returns Connection.readLp()