AwareDataPathRequest.Builder.SetPort(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 port number which will be used to create a connection over this link.
[Android.Runtime.Register("setPort", "(I)Landroid/net/wifi/aware/AwareDataPathRequest$Builder;", "", ApiSince=37)]
public Android.Net.Wifi.Aware.AwareDataPathRequest.Builder SetPort(int port);
[<Android.Runtime.Register("setPort", "(I)Landroid/net/wifi/aware/AwareDataPathRequest$Builder;", "", ApiSince=37)>]
member this.SetPort : int -> Android.Net.Wifi.Aware.AwareDataPathRequest.Builder
Parameters
- port
- Int32
A positive integer indicating the port to be used for communication. Value is between 1 and 65535 inclusive
Returns
the current Builder builder, enabling chaining of builder methods. This value cannot be null.
- Attributes
Remarks
Configure the port number 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.
Notes: The server device must be the Publisher device!; The port information can only be specified on secure links, specified using setDataPathSecurityConfig(WifiAwareDataPathSecurityConfig)
Android reference for android.net.wifi.aware.AwareDataPathRequest.Builder.setPort.
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.