Condividi tramite


NDTCPMessenger(String, UInt32) Costruttore

Definizione

Crea una nuova istanza della 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)

Parametri

remoteHostName
String

Platform::String

winrt::hstring

Indirizzo IP dell'host remoto che riceverà messaggi. Il formato è un indirizzo IPv4 in notazione decimale tratteggiata o un indirizzo IPv6 in notazione con punti esadecimale.

remoteHostPort
UInt32

unsigned int

uint32_t

Porta TCP dell'host remoto che riceverà messaggi.

Attributi

Si applica a