NDTCPMessenger NDTCPMessenger NDTCPMessenger NDTCPMessenger Class

Definition

Sends PlayReady-ND messages and challenges using the TCP network protocol.

public : sealed class NDTCPMessenger : INDMessengerpublic sealed class NDTCPMessenger : INDMessengerPublic NotInheritable Class NDTCPMessenger Implements INDMessenger// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

NDTCPMessenger(String, UInt32) NDTCPMessenger(String, UInt32) NDTCPMessenger(String, UInt32) NDTCPMessenger(String, UInt32)

Creates a new instance of the NDTCPMessenger class.

public : NDTCPMessenger(PlatForm::String remoteHostName, unsigned int remoteHostPort)public NDTCPMessenger(String remoteHostName, UInt32 remoteHostPort)Public Sub New(remoteHostName As String, remoteHostPort As UInt32)// You can use this method in JavaScript.
Parameters
remoteHostName
PlatForm::String String String String

The IP address of the remote host that will receive messages. The format is either an IPv4 address in dotted-decimal notation or an IPv6 address in colon-hex notation.

remoteHostPort
unsigned int UInt32 UInt32 UInt32

The TCP port of the remote host that will receive messages.

Methods

SendLicenseFetchRequestAsync(Byte[], Byte[]) SendLicenseFetchRequestAsync(Byte[], Byte[]) SendLicenseFetchRequestAsync(Byte[], Byte[]) SendLicenseFetchRequestAsync(Byte[], Byte[])

Sends the specified data in an asynchronous license fetch request message.

public : IAsyncOperation<INDSendResult> SendLicenseFetchRequestAsync(Byte[] sessionIDBytes, Byte[] challengeDataBytes)public IAsyncOperation<INDSendResult> SendLicenseFetchRequestAsync(Byte[] sessionIDBytes, Byte[] challengeDataBytes)Public Function SendLicenseFetchRequestAsync(sessionIDBytes As Byte[], challengeDataBytes As Byte[]) As IAsyncOperation( Of INDSendResult )// You can use this method in JavaScript.
Parameters
sessionIDBytes
Byte[] Byte[] Byte[] Byte[]

The session identifier. The session identifier must be 16 bytes.

challengeDataBytes
Byte[] Byte[] Byte[] Byte[]

The data for the challenge message.

Returns

SendProximityDetectionResponseAsync(NDProximityDetectionType, Byte[], Byte[], Byte[]) SendProximityDetectionResponseAsync(NDProximityDetectionType, Byte[], Byte[], Byte[]) SendProximityDetectionResponseAsync(NDProximityDetectionType, Byte[], Byte[], Byte[]) SendProximityDetectionResponseAsync(NDProximityDetectionType, Byte[], Byte[], Byte[])

Sends the specified data in an asynchronous proximity detection response message.

public : IAsyncOperation<INDSendResult> SendProximityDetectionResponseAsync(NDProximityDetectionType pdType, Byte[] transmitterChannelBytes, Byte[] sessionIDBytes, Byte[] responseDataBytes)public IAsyncOperation<INDSendResult> SendProximityDetectionResponseAsync(NDProximityDetectionType pdType, Byte[] transmitterChannelBytes, Byte[] sessionIDBytes, Byte[] responseDataBytes)Public Function SendProximityDetectionResponseAsync(pdType As NDProximityDetectionType, transmitterChannelBytes As Byte[], sessionIDBytes As Byte[], responseDataBytes As Byte[]) As IAsyncOperation( Of INDSendResult )// You can use this method in JavaScript.
Parameters
pdType
NDProximityDetectionType NDProximityDetectionType NDProximityDetectionType NDProximityDetectionType

The type of proximity detection operation. This value can be UDP, TCP, or Transport-Agnostic.

transmitterChannelBytes
Byte[] Byte[] Byte[] Byte[]

The transmitter channel data.

sessionIDBytes
Byte[] Byte[] Byte[] Byte[]

The session identifier. The session identifier must be 16 bytes.

responseDataBytes
Byte[] Byte[] Byte[] Byte[]

The data for the response message.

Returns

SendProximityDetectionStartAsync(NDProximityDetectionType, Byte[], Byte[], Byte[]) SendProximityDetectionStartAsync(NDProximityDetectionType, Byte[], Byte[], Byte[]) SendProximityDetectionStartAsync(NDProximityDetectionType, Byte[], Byte[], Byte[]) SendProximityDetectionStartAsync(NDProximityDetectionType, Byte[], Byte[], Byte[])

Sends the specified data in an asynchronous proximity detection start message.

public : IAsyncOperation<INDSendResult> SendProximityDetectionStartAsync(NDProximityDetectionType pdType, Byte[] transmitterChannelBytes, Byte[] sessionIDBytes, Byte[] challengeDataBytes)public IAsyncOperation<INDSendResult> SendProximityDetectionStartAsync(NDProximityDetectionType pdType, Byte[] transmitterChannelBytes, Byte[] sessionIDBytes, Byte[] challengeDataBytes)Public Function SendProximityDetectionStartAsync(pdType As NDProximityDetectionType, transmitterChannelBytes As Byte[], sessionIDBytes As Byte[], challengeDataBytes As Byte[]) As IAsyncOperation( Of INDSendResult )// You can use this method in JavaScript.
Parameters
pdType
NDProximityDetectionType NDProximityDetectionType NDProximityDetectionType NDProximityDetectionType

The type of proximity detection operation. This value can be UDP, TCP, or Transport-Agnostic.

transmitterChannelBytes
Byte[] Byte[] Byte[] Byte[]

The transmitter channel data.

sessionIDBytes
Byte[] Byte[] Byte[] Byte[]

The session identifier. The session identifier must be 16 bytes.

challengeDataBytes
Byte[] Byte[] Byte[] Byte[]

The data for the challenge message.

Returns

SendRegistrationRequestAsync(Byte[], Byte[]) SendRegistrationRequestAsync(Byte[], Byte[]) SendRegistrationRequestAsync(Byte[], Byte[]) SendRegistrationRequestAsync(Byte[], Byte[])

Sends the specified data in an asynchronous registration request message.

public : IAsyncOperation<INDSendResult> SendRegistrationRequestAsync(Byte[] sessionIDBytes, Byte[] challengeDataBytes)public IAsyncOperation<INDSendResult> SendRegistrationRequestAsync(Byte[] sessionIDBytes, Byte[] challengeDataBytes)Public Function SendRegistrationRequestAsync(sessionIDBytes As Byte[], challengeDataBytes As Byte[]) As IAsyncOperation( Of INDSendResult )// You can use this method in JavaScript.
Parameters
sessionIDBytes
Byte[] Byte[] Byte[] Byte[]

The session identifier. The session identifier must be 16 bytes.

challengeDataBytes
Byte[] Byte[] Byte[] Byte[]

The data for the challenge message.

Returns