status-go/vendor/github.com/libp2p/go-mplex
Richard Ramos ad326fa290
feat: wakuv2 store (#2780)
Allows runnning a store node depending on node config settings.
2022-08-19 12:34:07 -04:00
..
LICENSE migrate to go 1.12 and go modules 2019-06-12 13:12:00 +02:00
README.md chore: bump go-waku 2022-04-06 10:36:06 -04:00
deadline.go go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
multiplex.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
stream.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
version.json feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00

README.md

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