System::Net::Sockets::TcpClient::Connect método

TcpClient::Connect(String, int32_t) method

Establece una conexión con el host remoto especificado.

void System::Net::Sockets::TcpClient::Connect(String hostname, int32_t port)
ParámetroTipoDescripción
hostnameStringUn nombre de host remoto al que conectar.
puertoint32_tUn puerto del host remoto al que conectar.

Ver también

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

Establece una conexión con el host remoto especificado.

void System::Net::Sockets::TcpClient::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>> ipAddresses, int32_t port)
ParámetroTipoDescripción
ipAddressesSystem::ArrayPtr<System::SharedPtr<IPAddress>>Las direcciones IP de un host remoto.
puertoint32_tUn puerto del host remoto al que conectar.

Ver también

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

Establece una conexión con el host remoto especificado.

void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPAddress> address, int32_t port)
ParámetroTipoDescripción
direcciónSystem::SharedPtr<IPAddress>La dirección IP de un host remoto.
puertoint32_tUn puerto del host remoto al que conectar.

Ver también

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

Establece una conexión con el host remoto especificado.

void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPEndPoint> remoteEP)
ParámetroTipoDescripción
remoteEPSystem::SharedPtr<IPEndPoint>Un host remoto para conectar.

Ver también