WX2TUKTGV5XK5F5GMEUDU2IHT3LRW2IQRE2BRAH76CTJIVUFMQCAC
CPONUGXG2EFQI5VTBCP74GUGHWNORQ7FCKIOVXOIKGIYWZE66UEAC
KWR2TS2D7YN4LCGMQZ35V4WBLQDHAVSZJV3SZAIR5HQRSJAWLWCQC
let config = (Ipv4Addr::new(239, 255, 80, 80), 8080, 8080);
let mut server = Server::new(&mut event_loop, config);
let mut server = Server::new(&mut event_loop, Config { addr: Ipv4Addr::new(239, 255, 80, 80), port: 8080, });
let mut server = Server::new(&mut event_loop, Config {
addr: Ipv4Addr::new(239, 255, 80, 80),
port: 8080,
});
config: (Ipv4Addr, u16, u16),
config: Config,
struct Config { addr: Ipv4Addr, port: u16,}
struct Config {
addr: Ipv4Addr,
port: u16,
}
fn new(event_loop: &mut EventLoop<Self>, config: (Ipv4Addr, u16, u16)) -> Self {
fn new(event_loop: &mut EventLoop<Self>, config: Config) -> Self {
udp_socket.join_multicast(&IpAddr::V4(config.0)).unwrap();
udp_socket.join_multicast(&IpAddr::V4(config.addr)).unwrap();
SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), config.1)
SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), config.port)
let multicast_addr = SocketAddr::V4(SocketAddrV4::new(self.config.0, self.config.2));
let multicast_addr = SocketAddr::V4(SocketAddrV4::new(self.config.addr, self.config.port));