Share via


XboxLiveEndpointPair.FindEndpointPairByHostNamesAndPorts Method

Definition

Finds an existing XboxLiveEndpointPair instance, if one exists, associated with traffic from a first host and port to a second host and port.

Use this method to work backwards from incoming traffic to the XboxLiveEndpointPair that's associated with that traffic.

Important

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public:
 static XboxLiveEndpointPair ^ FindEndpointPairByHostNamesAndPorts(HostName ^ localHostName, Platform::String ^ localPort, HostName ^ remoteHostName, Platform::String ^ remotePort);
 static XboxLiveEndpointPair FindEndpointPairByHostNamesAndPorts(HostName const& localHostName, winrt::hstring const& localPort, HostName const& remoteHostName, winrt::hstring const& remotePort);
public static XboxLiveEndpointPair FindEndpointPairByHostNamesAndPorts(HostName localHostName, string localPort, HostName remoteHostName, string remotePort);
function findEndpointPairByHostNamesAndPorts(localHostName, localPort, remoteHostName, remotePort)
Public Shared Function FindEndpointPairByHostNamesAndPorts (localHostName As HostName, localPort As String, remoteHostName As HostName, remotePort As String) As XboxLiveEndpointPair

Parameters

localHostName
HostName

The HostName of the local end of the endpoint pair.

localPort
String

Platform::String

winrt::hstring

The port number of the local end of the endpoint pair.

remoteHostName
HostName

The HostName of the remote end of the endpoint pair.

remotePort
String

Platform::String

winrt::hstring

The port number of the remote end of the endpoint pair.

Returns

The XboxLiveEndpointPair that corresponds to the endpoints specified, or a null pointer if no such endpoint pair is found.

Applies to