Updated networking flow (markdown)

Ștefan Talpalaru 2020-03-03 23:52:52 +01:00
parent e497cd8c1a
commit 71b2da777f
1 changed files with 5 additions and 1 deletions

@ -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()
- awaits and returns Connection.readLp()