You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #1023 on February 23, 2021 14:41.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
According to this stackoverflow,
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 hasopen_outbound
method but I am unsure how to use this to create several substreams and pass these toSwarm::new
.Can we have an example using several substreams?
Beta Was this translation helpful? Give feedback.
All reactions