xtaci / smux

A Stream Multiplexing Library for golang with least memory usage(TDMA)
MIT License
1.31k stars 196 forks source link

smux multiplexes multiple TCP connections? #70

Open caleb-letsgo opened 4 years ago

caleb-letsgo commented 4 years ago

As I understand, smux uses a single TCP connection to simulate the effect of multiple virtual TCP connections. But kcptun says smux is designed to host multiple TCP links on the same connection. If you have multiple TCP connections, you have the same source and destination addresses, but different ports. So the user needs to maintain which TCP connection a stream represents. Do I understand that correctly? Can you recommend git projects that use smux?