socket.dropSourceSpecificMembership(sourceAddress, groupAddress[, multicastInterface])
指示内核使用 IP_DROP_SOURCE_MEMBERSHIP 套接字选项离开指定 sourceAddress 和 groupAddress 的源特定多播通道。当套接字关闭或进程终止时,该方法会被内核自动调用,因此大多数应用通常不需要调用它。
【Instructs the kernel to leave a source-specific multicast channel at the given
sourceAddress and groupAddress using the IP_DROP_SOURCE_MEMBERSHIP
socket option. This method is automatically called by the kernel when the
socket is closed or the process terminates, so most apps will never have
reason to call this.】
如果未指定 multicastInterface,操作系统将尝试在所有有效接口上取消加入组。
【If multicastInterface is not specified, the operating system will attempt to
drop membership on all valid interfaces.】