Updated networking flow (markdown)

Ștefan Talpalaru 2020-03-03 16:33:40 +01:00
parent a5c461471e
commit 2de2524dce
1 changed files with 9 additions and 0 deletions

@ -32,3 +32,12 @@ vendor/nim-libp2p/libp2p/switch.nim:
- awaits Switch.upgradeIncoming(Connection)
- awaits Connection.close()
- awaits Switch.cleanupConn(Connection)
- Switch.upgradeIncoming(Connection)
- creates a local Multistream instance
- awaits Multistream.select(Connection)
- for each protocol string key in Switch.secureManagers, calls Multistream.addHandler(proto: string, Switch.upgradeIncoming.securedHandler)
- awaits Multistream.handle(Connection)
- Switch.upgradeIncoming.securedHandler(Connection, proto: string)
- awaits Secure.secure(Connection) and saves the result in `sconn` - this seems to be the same as `conn`
- for each MuxerProvider value in Switch.muxers, calls Multistream.addHandler(MuxerProvider.codec, MuxerProvider)
- awaits Multistream.handle(sconn: Connection)