You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that running the discovery on mdns only worked for one interface. As soon as I tried it on a multihomed device, such as my laptop with WiFi and Cable on different networks, I could not find it anymore.
The discovery has been documented on socket-2, which shows that while we can listen on multiple interfaces for the incoming packets, we need to do some gymnastics to send packets on multiple interfaces.
Goal
Create a single socket which listen to multicast packets on multiple interfaces, and can send packets on a multiple interfaces as well.
What we gonna do on the live stream?
The goal is to create a socket interacting with socket-2 that provides an API to multiple interfaces. This will require having Rust interact with C++/C structs and do C->Rust FFI (which I have no idea how to do that much.) Come learn with me.
Create a Multicast UDP socket that:
Listens for a specific multicast ip:port (eg: MDNS)
Join multicast group on multiple interfaces
Receive a message: (data, origin ip, origin interface)
Send a message: (data, destination ip, origin interface)
Send a message on all active interfaces: (data, destination ip, [all interfaces])
I found that running the discovery on mdns only worked for one interface. As soon as I tried it on a multihomed device, such as my laptop with WiFi and Cable on different networks, I could not find it anymore.
The discovery has been documented on socket-2, which shows that while we can listen on multiple interfaces for the incoming packets, we need to do some gymnastics to send packets on multiple interfaces.
Goal
Create a single socket which listen to multicast packets on multiple interfaces, and can send packets on a multiple interfaces as well.
What we gonna do on the live stream?
The goal is to create a socket interacting with
socket-2
that provides an API to multiple interfaces. This will require having Rust interact with C++/C structs and do C->Rust FFI (which I have no idea how to do that much.) Come learn with me.Create a Multicast UDP socket that:
References
The text was updated successfully, but these errors were encountered: