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


يقوم بإنشاء اتصال بنقطة النهاية البعيدة المحددة.

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


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

## انظر أيضًا

* Class [String](../../../system/string/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.Page 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)
```


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

## انظر أيضًا

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


يقوم بإنشاء اتصال بنقطة النهاية البعيدة المحددة.

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


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

## انظر أيضًا

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


يقوم بإنشاء اتصال بنقطة النهاية البعيدة المحددة.

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


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

## انظر أيضًا

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