共用方式為


NDTCPMessenger 類別

定義

使用 TCP 網路通訊協定傳送 PlayReady-ND 訊息和挑戰。

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
繼承
Object Platform::Object IInspectable NDTCPMessenger
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

NDTCPMessenger(String, UInt32)

建立 NDTCPMessenger 類別的新實例。

方法

SendLicenseFetchRequestAsync(Byte[], Byte[])

在非同步授權擷取要求訊息中傳送指定的資料。

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

在非同步鄰近偵測回應訊息中傳送指定的資料。

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

在非同步鄰近偵測啟動訊息中傳送指定的資料。

SendRegistrationRequestAsync(Byte[], Byte[])

在非同步註冊要求訊息中傳送指定的資料。

適用於

另請參閱