Metodo System::Net::Sockets::Socket::Connect

Socket::Connect(String, int32_t) method

Stabilisce una connessione all’endpoint remoto specificato.

void System::Net::Sockets::Socket::Connect(String host, int32_t port)
ParametroTipoDescrizione
hostStringaIl nome host remoto.
portaint32_tIl numero di porta dell’host remoto.

Vedi anche

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

Stabilisce una connessione all’endpoint remoto specificato.

void System::Net::Sockets::Socket::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port)
ParametroTipoDescrizione
addressesSystem::ArrayPtr<System::SharedPtr<IPAddress>>Gli indirizzi IP dell’host remoto.
portaint32_tIl numero di porta dell’host remoto.

Vedi anche

Socket::Connect(System::SharedPtr<EndPoint>) method

Stabilisce una connessione all’endpoint remoto specificato.

void System::Net::Sockets::Socket::Connect(System::SharedPtr<EndPoint> remoteEP)
ParametroTipoDescrizione
remoteEPSystem::SharedPtr<EndPoint>L’endpoint remoto.

Vedi anche

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

Stabilisce una connessione all’endpoint remoto specificato.

void System::Net::Sockets::Socket::Connect(System::SharedPtr<IPAddress> address, int32_t port)
ParametroTipoDescrizione
indirizzoSystem::SharedPtr<IPAddress>L’indirizzo IP dell’host remoto.
portaint32_tIl numero di porta dell’host remoto.

Vedi anche