Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Mac/Win/Linux 上使用 wxWidgets 2.8.9,如何发送 UDP 广播消息?接收正在使用 wxDatagramSocket 工作,但对我来说,我将如何发送 UDP 广播消息并不明显。
原则上,只需在套接字标志中使用 wxSOCKET_BROADCAST 即可(这将导致为套接字设置 SO_BROADCAST)。