oops that wasn't it

main
_ 2021-12-05 20:22:12 +00:00
parent 570458c72c
commit be43b3ab55
1 changed files with 2 additions and 1 deletions

View File

@ -137,8 +137,9 @@ fn server () -> Result <(), AppError> {
let params = CommonParams::default ();
let socket = UdpSocket::bind (SocketAddrV4::new (Ipv4Addr::UNSPECIFIED, params.server_port)).unwrap ();
loop {
socket.join_multicast_v4 (&params.multicast_addr, &([0u8, 0, 0, 0].into ())).unwrap ();
loop {
println! ("Waiting for messages...");
let (req, remote_addr) = recv_msg_from (&socket)?;