XboxLiveEndpointPair.FindEndpointPairBySocketAddressBytes 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.
Finds an existing XboxLiveEndpointPair instance, if one exists, associated with traffic between two given socket addresses, where the socket addresses are provided as arrays of Byte containing Winsock SOCKADDR_STORAGE or related structures.
Use this method to work backwards from incoming traffic to the XboxLiveEndpointPair 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 ^ FindEndpointPairBySocketAddressBytes(Platform::Array <byte> ^ localSocketAddress, Platform::Array <byte> ^ remoteSocketAddress);
static XboxLiveEndpointPair FindEndpointPairBySocketAddressBytes(winrt::array_view <byte> const& localSocketAddress, winrt::array_view <byte> const& remoteSocketAddress);
public static XboxLiveEndpointPair FindEndpointPairBySocketAddressBytes(byte[] localSocketAddress, byte[] remoteSocketAddress);
function findEndpointPairBySocketAddressBytes(localSocketAddress, remoteSocketAddress)
Public Shared Function FindEndpointPairBySocketAddressBytes (localSocketAddress As Byte(), remoteSocketAddress As Byte()) As XboxLiveEndpointPair
Parameters
- localSocketAddress
-
Byte[]
byte[]
Address of the local socket, as an array of Byte containing a Winsock SOCKADDR_STORAGE or related structure, for example, the array returned when you call GetLocalSocketAddressBytes.
- remoteSocketAddress
-
Byte[]
byte[]
Address of the remote socket, as an array of Byte containing a Winsock SOCKADDR_STORAGE or related structure, for example, the array returned when you call GetRemoteSocketAddressBytes.
Returns
The XboxLiveEndpointPair that corresponds to the endpoints specified, or a null pointer if no such endpoint pair is found.