调用结果
¥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,则抛出 EINVAL System Error
。
¥If multicastInterface
can not be parsed into an IP then an EINVAL
System Error
is thrown.
在 IPv4 上,如果 multicastInterface
是有效地址但与任何接口都不匹配,或者如果地址与系列不匹配,则抛出 System Error
,例如 EADDRNOTAVAIL
或 EPROTONOSUP
。
¥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.