Fills in a byte array with the local socket address.
This method fills the specified byte buffer with the SOCKADDR_STORAGE address of the local device for use in subsequent Winsock operations leveraging the Xbox Secure Device Association.
public:
void GetLocalSocketAddressBytes(
out Array<unsigned char>^ socketAddressBytes
)
socketAddressBytes
Type: unsigned char
The array of bytes into which the socket address should be written. This must be at least sizeof(SOCKADDR_STORAGE) bytes.
The port number value will be zero if the Xbox Secure Device Association Template allowed dynamically-assigned port numbers in its corresponding SecureDeviceSocketDescription. In this case, the title will have to determine the local port number through other means.
The local address returned by this property is only valid on the calling device; to retrieve the local network identity for use by remote peers, create a local SecureDeviceAddress object and use its Buffer property to retrieve a serialized data block.
Namespace: Windows.Xbox.Networking
Metadata: windows.winmd