System::Net::Sockets::UdpClient class
Contents
[
Hide
]UdpClient class
Provides User Datagram Protocol (UDP) network services. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class UdpClient : public System::IDisposable
Methods
Method | Description |
---|---|
Close() | Closes the UDP connection. |
Connect(String, int32_t) | Establishes a connection to the specified port on the specified host. |
Connect(System::SharedPtr<IPAddress>, int32_t) | Establishes a connection with the host at the specified address on the specified port. |
Connect(System::SharedPtr<IPEndPoint>) | Establishes a connection to a remote end point. |
Dispose() override | Releases the managed and unmanaged resources used by the UdpClient. |
get_Client() | RTTI information. |
Receive(System::SharedPtr<IPEndPoint>&) | Returns a datagram sent by a server. |
Send(System::ArrayPtr<uint8_t>, int32_t, System::SharedPtr<IPEndPoint>) | Sends a UDP datagram to the host at the remote end point. |
Send(System::ArrayPtr<uint8_t>, int32_t, String, int32_t) | Sends a UDP datagram to the specified port on the specified remote host. |
Send(System::ArrayPtr<uint8_t>, int32_t) | Sends a UDP datagram to a remote host. |
set_Client(System::SharedPtr<Socket>) | Used to provide the underlying network socket. |
UdpClient() | Initializes a new instance of the UdpClient class. |
UdpClient(AddressFamily) | Initializes a new instance of the UdpClient class. |
UdpClient(int32_t) | Initializes a new instance of the UdpClient class. |
UdpClient(int32_t, AddressFamily) | Initializes a new instance of the UdpClient class. |
UdpClient(System::SharedPtr<IPEndPoint>) | Initializes a new instance of the UdpClient class. param local EP the local endpoint to which you bind the UDP connection. |
UdpClient(String, int32_t) | Creates a new instance of the UdpClient class and connects to the specified remote host on the specified port. |
See Also
- Class IDisposable
- Namespace System::Net::Sockets
- Library Aspose.TeX for C++