Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.7% on proxy.golang.org
Top 6.1% forks on proxy.golang.org

proxy.golang.org : 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.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/alecthomas/multiplex
License: BSD-3-Clause
Latest release: almost 10 years ago
First release: almost 10 years ago
Namespace: github.com/alecthomas
Stars: 24 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/alecthomas
Last synced: 18 days ago

    Loading...
    Readme
    Loading...