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


Καθιερώνει μια σύνδεση με το καθορισμένο απομακρυσμένο σημείο άκρης.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| host | String | Το όνομα του απομακρυσμένου κεντρικού συστήματος. |
| θύρα | 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 | Περιγραφή |
| --- | --- | --- |
| addresses | 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.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 του απομακρυσμένου κεντρικού συστήματος. |
| θύρα | int32_t | Ο αριθμός θύρας του απομακρυσμένου κεντρικού συστήματος. |

## Δείτε επίσης

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