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


Stellt eine Verbindung zum angegebenen Remote-Host her.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Hostname | String | Ein Remote-Hostname zum Verbinden. |
| Port | int32_t | Ein Port des Remote-Hosts zum Verbinden. |

## Siehe auch

* 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


Stellt eine Verbindung zum angegebenen Remote-Host her.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| ipAddresses | System::ArrayPtr\<System::SharedPtr\<IPAddress\>\> | Die IP-Adressen eines Remote-Hosts. |
| Port | int32_t | Ein Port des Remote-Hosts zum Verbinden. |

## Siehe auch

* 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


Stellt eine Verbindung zum angegebenen Remote-Host her.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Adresse | System::SharedPtr\<IPAddress\> | Die IP-Adresse eines Remote-Hosts. |
| Port | int32_t | Ein Port des Remote-Hosts zum Verbinden. |

## Siehe auch

* 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


Stellt eine Verbindung zum angegebenen Remote-Host her.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| remoteEP | System::SharedPtr\<IPEndPoint\> | Ein Remote-Host zum Verbinden. |

## Siehe auch

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