다음을 통해 공유


WifiAwareNetworkInfo.TransportProtocol Property

Definition

Get the transport protocol to be used to communicate over a network connection to the Wi-Fi Aware peer.

public int TransportProtocol { [Android.Runtime.Register("getTransportProtocol", "()I", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getTransportProtocol", "()I", "", ApiSince=29)>]
member this.TransportProtocol : int

Property Value

A transport protocol id. A value of -1 indicates that no transport protocol was specified by the peer.

Attributes

Remarks

Get the transport protocol to be used to communicate over a network connection to the Wi-Fi Aware peer. The transport protocol is provided by the app running on the peer which requested the connection, using the WifiAwareNetworkSpecifier.Builder#setTransportProtocol(int).

The transport protocol number is assigned by the Internet Assigned Numbers Authority (IANA) https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml.

Java documentation for android.net.wifi.aware.WifiAwareNetworkInfo.getTransportProtocol().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to