指定向此套接字上发送多播数据报的网络接口。
Specify the network interface for outgoing multicast datagrams sent on this socket.
清单10演示主机如何使用多播数据报接收和发送消息。
Listing 10 shows how a host USES multicast datagrams to receive and send messages.
现在,打开数据报通道并设置多播选项,如清单4所示。
Now, we open the datagram channel and set up the options for multicasting, as shown in Listing 4.
应用推荐