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

Rewrite the MemoryTransport to be similar to the TcpConfig #951

Merged
merged 4 commits into from
Feb 18, 2019

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Feb 18, 2019

Makes it possible to use the MemoryTransport as a drop-in replacement for TcpConfig, except that the addresses are of the form /memory/N (where N is a u64), instead of /ip4/.../tcp/....

Close #913

@ghost ghost assigned tomaka Feb 18, 2019
@ghost ghost added the in progress label Feb 18, 2019
@tomaka
Copy link
Member Author

tomaka commented Feb 18, 2019

One potential weird decision is that when you dial a listener, the address that the listener sees for you is the same as the address of the listener.
This mimics the behaviour of /unix/... and /udp/... (if udp was implemented).

@tomaka tomaka merged commit 43e4d1f into libp2p:master Feb 18, 2019
@tomaka tomaka deleted the fix-913 branch February 18, 2019 16:05
@ghost ghost removed the in progress label Feb 18, 2019
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

Successfully merging this pull request may close these issues.

2 participants