-api-id | -api-type |
---|---|
M:Windows.Networking.Sockets.DatagramSocket.GetEndpointPairsAsync(Windows.Networking.HostName,System.String,Windows.Networking.HostNameSortOptions) |
winrt method |
Gets a list of EndpointPair objects based on a remote hostname and remote service name and the sort order to be used.
The remote hostname or IP address.
The remote service name or UDP port.
The sort order to use when returning the list.
A list of EndpointPair objects.
The GetEndpointPairsAsync method gets a list of possible EndpointPair objects that can be used by a DatagramSocket to connect to a remote network destination. The returned list is sorted based on the sortOptions parameter.
A DatagramSocket can use the list returned by the GetEndpointPairsAsync method to try and bind or connect to each EndpointPair object until a remote destination can be reached. An EndpointPair object from the list would be used with the ConnectAsync(EndpointPair) method.
ConnectAsync(EndpointPair), EndpointPair, GetEndpointPairsAsync(HostName, String), HostName
ID_CAP_NETWORKING [Windows Phone]