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


Établit une connexion à l'hôte distant spécifié.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| nom d'hôte | String | Un nom d'hôte distant à connecter. |
| port | int32_t | Un port de l'hôte distant à connecter. |

## Voir aussi

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


Établit une connexion à l'hôte distant spécifié.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| ipAddresses | System::ArrayPtr\<System::SharedPtr\<IPAddress\>\> | Les adresses IP d'un hôte distant. |
| port | int32_t | Un port de l'hôte distant à connecter. |

## Voir aussi

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


Établit une connexion à l'hôte distant spécifié.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| adresse | System::SharedPtr\<IPAddress\> | L'adresse IP d'un hôte distant. |
| port | int32_t | Un port de l'hôte distant à connecter. |

## Voir aussi

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


Établit une connexion à l'hôte distant spécifié.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| remoteEP | System::SharedPtr\<IPEndPoint\> | Un hôte distant à connecter. |

## Voir aussi

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