XboxLiveEndpointPair.GetRemoteSocketAddressBytes(Byte[]) 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.
Gets the remote endpoint's socket address information, as an array of Byte. This method fills the specified byte buffer with the SOCKADDR_STORAGE address of the remote device for use in subsequent Winsock operations leveraging the Xbox Live Multiplayer Networking API.
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:
virtual void GetRemoteSocketAddressBytes(Platform::Array <byte> ^ socketAddress) = GetRemoteSocketAddressBytes;
void GetRemoteSocketAddressBytes(winrt::array_view <byte> & socketAddress);
public void GetRemoteSocketAddressBytes(byte[] socketAddress);
function getRemoteSocketAddressBytes(socketAddress)
Public Sub GetRemoteSocketAddressBytes (socketAddress As Byte())
Parameters
- socketAddress
-
Byte[]
byte[]
The remote socket address, as an array of Byte.
Remarks
The port number value will be zero if the XboxLiveEndpointPairTemplate allowed dynamically-assigned port numbers. In that case, your app will have to determine the remote port number through external means.
The peer address returned by this property is valid only on the calling device. To retrieve a network identity that can be shared with other peers, use the corresponding XboxLiveDeviceAddress object, and send a snapshot of that object to peers.