Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are some use cases of memconn? #6

Open
feisuzhu opened this issue Dec 16, 2018 · 2 comments
Open

What are some use cases of memconn? #6

feisuzhu opened this issue Dec 16, 2018 · 2 comments

Comments

@feisuzhu
Copy link

The whole thing is cool but I can't think of a use case.
This should be written in README.

@advdv
Copy link

advdv commented Jan 26, 2019

I use it for locally testing a network large number of tcp clients/servers. since net.Listener and net.Conn are interfaces the memconn implementations can be replaced by actual tcp implementations for the real implementation

@james-lawrence
Copy link

in process services as well. for example pub/sub implementations. basically anytime you want to process a stream of data and have unique addresses to talk to.
basically its an io.Pipe with a network interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants