upgradeInbound abstract method
Upgrades an inbound connection.
This method orchestrates the entire upgrade process for an incoming connection:
- Negotiates and applies a security protocol.
- Negotiates and applies a stream multiplexer over the secured connection.
Returns a fully upgraded Conn ready for use by the swarm.
Parameters:
connection
: The raw TransportConn to upgrade.config
: The node's Config containing security and muxer options.
Implementation
Future<Conn> upgradeInbound({
required TransportConn connection,
required Config config,
});