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

Socket::Connect(String, int32_t) method

Establece una conexión al punto final remoto especificado.

void System::Net::Sockets::Socket::Connect(String host, int32_t port)
ParámetroTipoDescripción
hostStringEl nombre del host remoto.
puertoint32_tEl número de puerto del host remoto.

Ver también

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

Establece una conexión al punto final remoto especificado.

void System::Net::Sockets::Socket::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port)
ParámetroTipoDescripción
addressesSystem::ArrayPtr<System::SharedPtr<IPAddress>>Las direcciones IP del host remoto.
puertoint32_tEl número de puerto del host remoto.

Ver también

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

Establece una conexión al punto final remoto especificado.

void System::Net::Sockets::Socket::Connect(System::SharedPtr<EndPoint> remoteEP)
ParámetroTipoDescripción
remoteEPSystem::SharedPtr<EndPoint>El punto final remoto.

Ver también

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

Establece una conexión al punto final remoto especificado.

void System::Net::Sockets::Socket::Connect(System::SharedPtr<IPAddress> address, int32_t port)
ParámetroTipoDescripción
direcciónSystem::SharedPtr<IPAddress>La dirección IP del host remoto.
puertoint32_tEl número de puerto del host remoto.

Ver también