Andrea Maria Piana 4d15ae8a85 Upgrade to go 1.18
2022-05-11 12:39:54 +01:00
..
2021-06-16 16:19:45 -04:00
2019-06-12 13:12:00 +02:00
2022-04-06 10:36:06 -04:00
2022-04-06 10:36:06 -04:00
2022-04-06 10:36:06 -04:00
2022-04-06 10:36:06 -04:00

go-mplex

Go Reference Discourse posts

A super simple stream muxing library implementing mplex.

Usage

mplex := multiplex.NewMultiplex(mysocket)

s, _ := mplex.NewStream()
s.Write([]byte("Hello World!"))
s.Close()

os, _ := mplex.Accept()
// echo back everything received
io.Copy(os, os)

The last gx published version of this module was: 0.2.35: QmWGQQ6Tz8AdUpxktLf3zgnVN9Vy8fcWVezZJSU3ZmiANj