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

Discovery: mdns hyperswarm discovery #11

Closed
13 tasks done
bltavares opened this issue May 18, 2020 · 0 comments · Fixed by #12
Closed
13 tasks done

Discovery: mdns hyperswarm discovery #11

bltavares opened this issue May 18, 2020 · 0 comments · Fixed by #12

Comments

@bltavares
Copy link
Owner

bltavares commented May 18, 2020

Livestream Details
Planned date Sunday 10am GMT-3 - 2020-06-07 in pt-br
Link https://twitch.tv/bltavares_codes
Timezone https://everytimezone.com/s/4eb77945

Goal

Start a new Beaker Browser 1.0 share on the computer, and find shared folder over mDNS message broadcast.

What we gonna do on the live stream?

This goal can be divided in two sub-goals: One to "Find Hyperdrives over LAN" and another to "Announce a Hyperdrive over LAN". This is similar to colmeia-dat1-mdns, but with a new protocol and data exchange.

We'll start with locating a Hyperdrive, and if we have time, announce our own hyperdrive as well.

Locate a Hyperdrive share

  • Find the packets on the network using Wireshark
  • Create a new UDP Socket in Rust that listen and broadcast mDNS packets
  • Query the network using mDNS packets
  • Create two async process: One to query, one to listen
  • Parse Beaker packets and print the information received
  • Expose a stream of IPs collected
  • Deal with errors instead of crashing with unwrap/expect's

Announce a Hyperdrive share

  • Find the packets on the network using Wireshark
  • Create a new UDP Socket in Rust that listen and broadcast mDNS packets
  • Listen to Beaker mDNS queries and print them
  • Create two async process: One to announce, one to respond
  • Respond with a well formatted query and check if Beaker tries to connect
  • Deal with errors instead of crashing with unwrap/expect's

References

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

Successfully merging a pull request may close this issue.

1 participant