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


Stabilisce una connessione all'host remoto specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| nome host | String | Un nome host remoto a cui connettersi. |
| porta | int32_t | Una porta dell'host remoto a cui connettersi. |

## Vedi anche

* 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


Stabilisce una connessione all'host remoto specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| ipAddresses | System::ArrayPtr\<System::SharedPtr\<IPAddress\>\> | Gli indirizzi IP di un host remoto. |
| porta | int32_t | Una porta dell'host remoto a cui connettersi. |

## Vedi anche

* 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


Stabilisce una connessione all'host remoto specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| indirizzo | System::SharedPtr\<IPAddress\> | L'indirizzo IP di un host remoto. |
| porta | int32_t | Una porta dell'host remoto a cui connettersi. |

## Vedi anche

* 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


Stabilisce una connessione all'host remoto specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| remoteEP | System::SharedPtr\<IPEndPoint\> | Un host remoto a cui connettersi. |

## Vedi anche

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