现在我们需要配置本地网络接口。
在理想情况下,可以确保只能通过本地网络接口访问本地应用程序。
Ideally, ensure that the local application is only accessible on the local network interface.
设置或者清除套接字的SO_BROADCAST(广播)选项。当该设置生效时,UDP数据包将被发送至本地网络接口的广播地址。
Sets or clears the SO_BROADCAST socket option. When this option is set, UDP packets may be sent to a local interface's broadcast address.
应用推荐