System::Net::Sockets::UdpClient::Connect método
Contenido
[
Ocultar
]UdpClient::Connect(String, int32_t) method
Establece una conexión al puerto especificado en el host especificado.
void System::Net::Sockets::UdpClient::Connect(String hostname, int32_t port)
| Parámetro | Tipo | Descripción |
|---|---|---|
| hostname | String | El nombre del host DNS remoto al que pretende conectarse. |
| puerto | int32_t | El número de puerto local desde el cual pretende comunicarse. |
Ver también
- Class String
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.Page for C++
UdpClient::Connect(System::SharedPtr<IPAddress>, int32_t) method
Establece una conexión con el host en la dirección especificada y el puerto especificado.
void System::Net::Sockets::UdpClient::Connect(System::SharedPtr<IPAddress> addr, int32_t port)
| Parámetro | Tipo | Descripción |
|---|---|---|
| addr | System::SharedPtr<IPAddress> | La IPAddress del host remoto al que enviar datos. |
| puerto | int32_t | El número de puerto local desde el cual pretende comunicarse. |
Ver también
- Typedef SharedPtr
- Class IPAddress
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.Page for C++
UdpClient::Connect(System::SharedPtr<IPEndPoint>) method
Establece una conexión a un punto final remoto.
void System::Net::Sockets::UdpClient::Connect(System::SharedPtr<IPEndPoint> endPoint)
| Parámetro | Tipo | Descripción |
|---|---|---|
| endPoint | System::SharedPtr<IPEndPoint> | el punto final al que enlaza la conexión UDP. |
Ver también
- Typedef SharedPtr
- Class IPEndPoint
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.Page for C++