|
| | UDPService ()=default |
| |
| bool | begin (int port) override |
| | Initialize UDP service on specified port.
|
| |
| bool | begin (IPAddressAndPort addr) override |
| | Initialize UDP service on specified address and port.
|
| |
| bool | send (uint8_t *data, int len) override |
| | Send data to the default destination.
|
| |
| bool | send (IPAddressAndPort addr, uint8_t *data, int len) override |
| | Send data to specified address and port.
|
| |
| RequestData | receive () override |
| | Receive incoming UDP data and peer information.
|
| |
template<typename UDPType>
class tiny_dlna::UDPService< UDPType >
Access to UDP functionality: sending and receiving of data.
This class is a template and requires you to specify the UDP implementation type. For example, use UDPService<WiFiUDP> for WiFiUDP or UDPService<MyUDPType> for a custom UDP class.
Usage: UDPService<WiFiUDP> udp; // Uses WiFiUDP UDPService<MyUDPType> udp2; // Uses custom UDP type
Implements IUDPService for sending and receiving UDP packets, including multicast support.
- Template Parameters
-
| UDPType | Arduino UDP implementation that provides the standard UDP interface (e.g. WiFiUDP, EthernetUDP). |
- Author
- Phil Schatzmann