Partilhar via


NDTCPMessenger(String, UInt32) Construtor

Definição

Cria uma nova instância da 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)

Parâmetros

remoteHostName
String

Platform::String

winrt::hstring

O endereço IP do host remoto que receberá mensagens. O formato é um endereço IPv4 na notação dotted-decimal ou um endereço IPv6 na notação colon-hex.

remoteHostPort
UInt32

unsigned int

uint32_t

A porta TCP do host remoto que receberá mensagens.

Atributos

Aplica-se a