Delen via


NDTCPMessenger Class

Definition

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

public ref class NDTCPMessenger sealed : INDMessenger
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.INDTCPMessengerFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class NDTCPMessenger final : INDMessenger
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.INDTCPMessengerFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class NDTCPMessenger final : INDMessenger
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.INDTCPMessengerFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Deprecated("NDTCPMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
class NDTCPMessenger final : INDMessenger
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.INDTCPMessengerFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class NDTCPMessenger : INDMessenger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.INDTCPMessengerFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class NDTCPMessenger : INDMessenger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.INDTCPMessengerFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Deprecated("NDTCPMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public sealed class NDTCPMessenger : INDMessenger
function NDTCPMessenger(remoteHostName, remoteHostPort)
Public NotInheritable Class NDTCPMessenger
Implements INDMessenger
Inheritance
Object Platform::Object IInspectable NDTCPMessenger
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

NDTCPMessenger(String, UInt32)

Creates a new instance of the NDTCPMessenger class.

Methods

SendLicenseFetchRequestAsync(Byte[], Byte[])

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

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

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

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

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

SendRegistrationRequestAsync(Byte[], Byte[])

Sends the specified data in an asynchronous registration request message.

Applies to

See also