libp2p / jvm-libp2p

a libp2p implementation for the JVM, written in Kotlin 🔥
https://libp2p.io
Apache License 2.0
260 stars 74 forks source link

Refactor MuxId #322

Closed Nashatyrev closed 11 months ago

Nashatyrev commented 11 months ago

There is some inconsistency with MuxId for Yamux: the StreamId for yamux is just a Long while stream id for Mplex is a pair of (Long, Boolean). So we need to abstract MuxId and make it consistent across both muxers

We also need to validate remote StreamId on remote stream opening (SYN for Yamux)

Nashatyrev commented 11 months ago

Relates to https://github.com/libp2p/jvm-libp2p/pull/312#issuecomment-1714199823 and PR #318