## TcpClient::Connect(String, int32_t) method


Establece una conexión con el host remoto especificado.

```cpp
void System::Net::Sockets::TcpClient::Connect(String hostname, int32_t port)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| hostname | String | Un nombre de host remoto al que conectar. |
| puerto | int32_t | Un puerto del host remoto al que conectar. |

## Ver también

* Class [String](../../../system/string/)
* Class [TcpClient](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.Page for C++](../../../)
## TcpClient::Connect(System::ArrayPtr\<System::SharedPtr\<IPAddress\>\>, int32_t) method


Establece una conexión con el host remoto especificado.

```cpp
void System::Net::Sockets::TcpClient::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>> ipAddresses, int32_t port)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| ipAddresses | System::ArrayPtr\<System::SharedPtr\<IPAddress\>\> | Las direcciones IP de un host remoto. |
| puerto | int32_t | Un puerto del host remoto al que conectar. |

## Ver también

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPAddress](../../../system.net/ipaddress/)
* Class [TcpClient](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.Page for C++](../../../)
## TcpClient::Connect(System::SharedPtr\<IPAddress\>, int32_t) method


Establece una conexión con el host remoto especificado.

```cpp
void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPAddress> address, int32_t port)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| dirección | System::SharedPtr\<IPAddress\> | La dirección IP de un host remoto. |
| puerto | int32_t | Un puerto del host remoto al que conectar. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPAddress](../../../system.net/ipaddress/)
* Class [TcpClient](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.Page for C++](../../../)
## TcpClient::Connect(System::SharedPtr\<IPEndPoint\>) method


Establece una conexión con el host remoto especificado.

```cpp
void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPEndPoint> remoteEP)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| remoteEP | System::SharedPtr\<IPEndPoint\> | Un host remoto para conectar. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPEndPoint](../../../system.net/ipendpoint/)
* Class [TcpClient](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.Page for C++](../../../)
