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


지정된 원격 호스트에 연결을 설정합니다.

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 호스트명 | String | 연결할 원격 호스트 이름. |
| 포트 | int32_t | 연결할 원격 호스트의 포트. |

## 또 보기

* 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


지정된 원격 호스트에 연결을 설정합니다.

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| ipAddresses | System::ArrayPtr\<System::SharedPtr\<IPAddress\>\> | 원격 호스트의 IP 주소들. |
| 포트 | int32_t | 연결할 원격 호스트의 포트. |

## 또 보기

* 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


지정된 원격 호스트에 연결을 설정합니다.

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 주소 | System::SharedPtr\<IPAddress\> | 원격 호스트의 IP 주소. |
| 포트 | int32_t | 연결할 원격 호스트의 포트. |

## 또 보기

* 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


지정된 원격 호스트에 연결을 설정합니다.

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| remoteEP | System::SharedPtr\<IPEndPoint\> | 연결할 원격 호스트. |

## 또 보기

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