AwareDataPathRequest.Builder.SetTransportProtocol(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configure the transport protocol which will be used to create a connection over this link.
[Android.Runtime.Register("setTransportProtocol", "(I)Landroid/net/wifi/aware/AwareDataPathRequest$Builder;", "", ApiSince=37)]
public Android.Net.Wifi.Aware.AwareDataPathRequest.Builder SetTransportProtocol(int transportProtocol);
[<Android.Runtime.Register("setTransportProtocol", "(I)Landroid/net/wifi/aware/AwareDataPathRequest$Builder;", "", ApiSince=37)>]
member this.SetTransportProtocol : int -> Android.Net.Wifi.Aware.AwareDataPathRequest.Builder
Parameters
- transportProtocol
- Int32
The transport protocol to be used for communication. Value is between 0 and 255 inclusive
Returns
the current Builder builder, enabling chaining of builder methods. This value cannot be null.
- Attributes
Remarks
Configure the transport protocol which will be used to create a connection over this link. This configuration should only be done on the server device, e.g. the device creating the ServerSocket for TCP.
Notes: The server device must be the Publisher device!; The transport protocol information can only be specified on secure links, specified using setDataPathSecurityConfig(WifiAwareDataPathSecurityConfig) The transport protocol number is assigned by the Internet Assigned Numbers Authority (IANA) https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml.
Android reference for android.net.wifi.aware.AwareDataPathRequest.Builder.setTransportProtocol.
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.