core/protocol/switch library
Package protocol provides core interfaces for protocol routing and negotiation in libp2p.
This file contains the Switch interface, which combines Router and Negotiator.
Classes
- ProtocolSwitch
- Switch is the component responsible for "dispatching" incoming stream requests to their corresponding stream handlers. It is both a Negotiator and a Router.