System::Net::Sockets::TcpClient::Connect metodo

TcpClient::Connect(String, int32_t) method

Stabilisce una connessione all’host remoto specificato.

void System::Net::Sockets::TcpClient::Connect(String hostname, int32_t port)
ParametroTipoDescrizione
nome hostStringaUn nome host remoto a cui connettersi.
portaint32_tUna porta dell’host remoto a cui connettersi.

Vedi anche

TcpClient::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>>, int32_t) method

Stabilisce una connessione all’host remoto specificato.

void System::Net::Sockets::TcpClient::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>> ipAddresses, int32_t port)
ParametroTipoDescrizione
indirizzi IPSystem::ArrayPtr<System::SharedPtr<IPAddress>>Gli indirizzi IP di un host remoto.
portaint32_tUna porta dell’host remoto a cui connettersi.

Vedi anche

TcpClient::Connect(System::SharedPtr<IPAddress>, int32_t) method

Stabilisce una connessione all’host remoto specificato.

void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPAddress> address, int32_t port)
ParametroTipoDescrizione
indirizzoSystem::SharedPtr<IPAddress>L’indirizzo IP di un host remoto.
portaint32_tUna porta dell’host remoto a cui connettersi.

Vedi anche

TcpClient::Connect(System::SharedPtr<IPEndPoint>) method

Stabilisce una connessione all’host remoto specificato.

void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPEndPoint> remoteEP)
ParametroTipoDescrizione
remoteEPSystem::SharedPtr<IPEndPoint>Un host remoto a cui connettersi.

Vedi anche