Add virtual beginMulticast(...) stub to UDP class

This commit is contained in:
Sandeep Mistry 2017-01-03 13:42:24 -05:00 committed by Martino Facchin
parent 045d83b2e5
commit 5a05bf01f4
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@
class UDP : public Stream {
public:
virtual uint8_t begin(uint16_t) =0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
virtual uint8_t begin(uint16_t) =0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
virtual uint8_t beginMulticast(IPAddress, uint16_t) { return 0; } // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure
virtual void stop() =0; // Finish with the UDP socket
// Sending UDP packets