lan_discovery_WOL: lan discovery almost done

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2022-07-15 11:27:39 +08:00
1 parent 7e0f7be95c
commit cbb34fb021
2 files changed
+85 -38

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ fn new_socket(addr: SocketAddr, reuse: bool, buf_size: usize) -> Result<Socket,
addr,
socket.recv_buffer_size()
);
socket.set_nonblocking(true)?;
socket.bind(&addr.into())?;
Ok(socket)
}