語言

SocketOptions.IpMulticastIf 欄位

定義

警告

This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.

設定傳送多播封包的輸出介面。

[Android.Runtime.Register("IP_MULTICAST_IF")]
[System.Obsolete("This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.", true)]
public const Java.Net.SocketOption IpMulticastIf = 16;
[<Android.Runtime.Register("IP_MULTICAST_IF")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Net.SocketOption enum directly instead of this field.", true)>]
val mutable IpMulticastIf : Java.Net.SocketOption

欄位值

Value = 16
屬性

備註

設定傳送多播封包的輸出介面。 適用於擁有多個網路介面的主機,當應用程式想使用系統預設以外的其他系統時。 接收/回傳一個 InetAddress。

適用於多播:DatagramSocketImpl

Java 文件 java.net.SocketOptions.IP_MULTICAST_IF

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於