github.com/alecthomas/multiplex
Package multiplex provides multiplexed streams over a single underlying transport `io.ReadWriteCloser`. Any system that requires a large number of independent TCP connections could benefit from this package, by instead having each client maintain a single multiplexed connection. There is essentially very little cost to creating new channels, or maintaining a large number of open channels. Ideal for long term waiting. An interesting side-effect of this multiplexing is that once the underlying connection has been established, each end of the connection can both `Accept()` and `Dial()`. This allows for elegant push notifications and other interesting approaches. Can be found on [godoc.org](http://godoc.org/github.com/alecthomas/multiplex) or below. Example Server Connect to a server with a single TCP connection, then create 10K channels over it and write "hello" to each.
proxy.golang.org
v0.0.0-20140815001232-e565e6fcbcd0
over 11 years ago
1
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/alecthomas/multiplex
spec |
| License | BSD-3-Clause |
| Namespace | github.com/alecthomas |
| First Release | over 11 years ago |
| Last Synced | 11 days ago |
Repository
| Stars | 24 on GitHub |
| Forks | 2 on GitHub |