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


يؤسس اتصالًا بنقطة النهاية البعيدة المحددة.

```cpp
void System::Net::Sockets::Socket::Connect(String host, int32_t port)
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| host | String | اسم المضيف البعيد. |
| منفذ | int32_t | رقم المنفذ للمضيف البعيد. |

## انظر أيضًا

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


يؤسس اتصالًا بنقطة النهاية البعيدة المحددة.

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


| معامل | نوع | الوصف |
| --- | --- | --- |
| العناوين | System::ArrayPtr\<System::SharedPtr\<IPAddress\>\> | عناوين IP للمضيف البعيد. |
| منفذ | int32_t | رقم المنفذ للمضيف البعيد. |

## انظر أيضًا

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


يؤسس اتصالًا بنقطة النهاية البعيدة المحددة.

```cpp
void System::Net::Sockets::Socket::Connect(System::SharedPtr<EndPoint> remoteEP)
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| remoteEP | System::SharedPtr\<EndPoint\> | النقطة النهائية البعيدة. |

## انظر أيضًا

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


يؤسس اتصالًا بنقطة النهاية البعيدة المحددة.

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


| معامل | نوع | الوصف |
| --- | --- | --- |
| العنوان | System::SharedPtr\<IPAddress\> | عنوان IP للمضيف البعيد. |
| منفذ | int32_t | رقم المنفذ للمضيف البعيد. |

## انظر أيضًا

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