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

Various network topology examples. #41

Merged
merged 39 commits into from
Jul 1, 2018
Merged

Various network topology examples. #41

merged 39 commits into from
Jul 1, 2018

Conversation

doug-perlin
Copy link
Contributor

@doug-perlin doug-perlin commented Jun 26, 2018

Setup networks for:

  • ring
  • mesh
  • star
  • fully connected
  • line
  • tree

TODO:

1. fully connected with 5 nodes fails on broadcast
2. mesh setup times out in discovery
3. can look into taking out the time.sleeps() and use channels to speed this up (not blocking this PR)
4. can clean up how ports are allocated, currently no way gracefully shutdown the server (not blocking this PR)

@doug-perlin doug-perlin changed the title Ring topology test Ring topology example Jun 26, 2018
@doug-perlin doug-perlin changed the title Ring topology example Various topology examples Jun 27, 2018
Copy link
Contributor

@iwasaki-kenta iwasaki-kenta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the structure/code/comment style for the basic example: https://github.com/perlin-network/noise/tree/master/examples/basic

@iwasaki-kenta iwasaki-kenta changed the title Various topology examples Various network topology examples. Jun 27, 2018
@doug-perlin
Copy link
Contributor Author

Converted the test into an example, can take a look.

@doug-perlin
Copy link
Contributor Author

doug-perlin commented Jul 1, 2018

image
Cleared go-build cache (rm -rf ~/.cache/go-build), merged the master, still seems to pass go tests

@iwasaki-kenta iwasaki-kenta merged commit d61ea7b into master Jul 1, 2018
@iwasaki-kenta iwasaki-kenta deleted the topology-ring branch July 1, 2018 09:43
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