-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
According to this stackoverflow,
you generally dial other peers using the switch interface, which will give you a stream to read from and write to,
...
the switch will just use the existing connection and open another muxed stream over it,
...
As I understand this, we can dial multiple times to get multiple substreams on one TCP connection. However libp2p::Swarm::dial_addr(..) does not return a stream. StreamMuxer has open_outbound method but I am unsure how to use this to create several substreams and pass these to Swarm::new.
Can we have an example using several substreams?
sireliah
Metadata
Metadata
Assignees
Labels
No labels