Partager via


NDTCPMessenger(String, UInt32) Constructeur

Définition

Crée une instance de la classe NDTCPMessenger.

public:
 NDTCPMessenger(Platform::String ^ remoteHostName, unsigned int remoteHostPort);
 NDTCPMessenger(winrt::hstring const& remoteHostName, uint32_t const& remoteHostPort);
/// [Windows.Foundation.Metadata.Deprecated("INDTCPMessengerFactory is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
 NDTCPMessenger(winrt::hstring const& remoteHostName, uint32_t const& remoteHostPort);
public NDTCPMessenger(string remoteHostName, uint remoteHostPort);
[Windows.Foundation.Metadata.Deprecated("INDTCPMessengerFactory is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public NDTCPMessenger(string remoteHostName, uint remoteHostPort);
function NDTCPMessenger(remoteHostName, remoteHostPort)
Public Sub New (remoteHostName As String, remoteHostPort As UInteger)

Paramètres

remoteHostName
String

Platform::String

winrt::hstring

Adresse IP de l’hôte distant qui recevra les messages. Le format est soit une adresse IPv4 en notation décimale en pointillés, soit une adresse IPv6 en notation hexadécimale deux-points.

remoteHostPort
UInt32

unsigned int

uint32_t

Port TCP de l’hôte distant qui recevra les messages.

Attributs

S’applique à