System::Net::Sockets::UdpClient::Connect method
Contents
[
Hide
]UdpClient::Connect(String, int32_t) method
Establishes a connection to the specified port on the specified host.
void System::Net::Sockets::UdpClient::Connect(String hostname, int32_t port)
Parameter | Type | Description |
---|---|---|
hostname | String | The name of the remote DNS host to which you intend to connect. |
port | int32_t | The local port number from which you intend to communicate. |
See Also
- Class String
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.TeX for C++
UdpClient::Connect(System::SharedPtr<IPAddress>, int32_t) method
Establishes a connection with the host at the specified address on the specified port.
void System::Net::Sockets::UdpClient::Connect(System::SharedPtr<IPAddress> addr, int32_t port)
Parameter | Type | Description |
---|---|---|
addr | System::SharedPtr<IPAddress> | The IPAddress of the remote host to which to send data. |
port | int32_t | The local port number from which you intend to communicate. |
See Also
- Typedef SharedPtr
- Class IPAddress
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.TeX for C++
UdpClient::Connect(System::SharedPtr<IPEndPoint>) method
Establishes a connection to a remote end point.
void System::Net::Sockets::UdpClient::Connect(System::SharedPtr<IPEndPoint> endPoint)
Parameter | Type | Description |
---|---|---|
endPoint | System::SharedPtr<IPEndPoint> | the endpoint to which you bind the UDP connection. |
See Also
- Typedef SharedPtr
- Class IPEndPoint
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.TeX for C++