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


Establece una conexión al punto final remoto especificado.

```cpp
void System::Net::Sockets::Socket::Connect(String host, int32_t port)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| host | String | El nombre del host remoto. |
| puerto | int32_t | El número de puerto del host remoto. |

## Ver también

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


Establece una conexión al punto final remoto especificado.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| addresses | System::ArrayPtr\<System::SharedPtr\<IPAddress\>\> | Las direcciones IP del host remoto. |
| puerto | int32_t | El número de puerto del host remoto. |

## Ver también

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


Establece una conexión al punto final remoto especificado.

```cpp
void System::Net::Sockets::Socket::Connect(System::SharedPtr<EndPoint> remoteEP)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| remoteEP | System::SharedPtr\<EndPoint\> | El punto de enlace remoto. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [EndPoint](../../../system.net/endpoint/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
## Socket::Connect(System::SharedPtr\<IPAddress\>, int32_t) method


Establece una conexión al punto final remoto especificado.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| dirección | System::SharedPtr\<IPAddress\> | La dirección IP del host remoto. |
| puerto | int32_t | El número de puerto del host remoto. |

## Ver también

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPAddress](../../../system.net/ipaddress/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
