调用结果
【Call results】
对一个未准备好发送或已关闭的套接字进行调用可能会抛出 Not running Error。
【A call on a socket that is not ready to send or no longer open may throw a Not
running Error.】
如果 multicastInterface 无法解析为 IP,则会抛出 EINVALSystem Error。
【If multicastInterface can not be parsed into an IP then an EINVAL
System Error is thrown.】
在 IPv4 上,如果 multicastInterface 是一个有效地址但不匹配任何接口,或者地址与地址族不匹配,则会抛出类似 EADDRNOTAVAIL 或 EPROTONOSUP 的 System Error 错误。
【On IPv4, if multicastInterface is a valid address but does not match any
interface, or if the address does not match the family then
a System Error such as EADDRNOTAVAIL or EPROTONOSUP is thrown.】
在 IPv6 中,大多数在指定或省略作用域时的错误会导致套接字继续使用(或返回)系统的默认接口选择。
【On IPv6, most errors with specifying or omitting scope will result in the socket continuing to use (or returning to) the system's default interface selection.】
套接字地址族的任意地址(IPv4 的 '0.0.0.0' 或 IPv6 的 '::')可以用来将套接字默认的出站接口控制权返回给系统,以便用于未来的多播数据包。
【A socket's address family's ANY address (IPv4 '0.0.0.0' or IPv6 '::') can be
used to return control of the sockets default outgoing interface to the system
for future multicast packets.】