Updated networking flow (markdown)
parent
93f3562bb4
commit
5f6f1f2698
|
@ -54,4 +54,4 @@ vendor/nim-libp2p/libp2p/multistream.nim:
|
|||
- 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
|
||||
- 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 which is usually MuxerProvider.init.handler() that does nothing
|
Loading…
Reference in New Issue