## 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.Font 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)
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| عناوين IP | 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.Font 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.Font 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.Font for C++](../../../)
