aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Udp.h
diff options
context:
space:
mode:
authorSandeep Mistry <s.mistry@arduino.cc>2017-01-03 13:42:24 -0500
committerMartino Facchin <m.facchin@arduino.cc>2017-02-08 15:33:41 +0100
commit5a05bf01f4ffbe16670eb8d713688d059c3bd084 (patch)
tree83239e5eb37edb8e5f1de95907712203fa762072 /cores/arduino/Udp.h
parent045d83b2e59daf9421353a71cdb63803ec91a4b1 (diff)
Add virtual beginMulticast(...) stub to UDP class
Diffstat (limited to 'cores/arduino/Udp.h')
-rw-r--r--cores/arduino/Udp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cores/arduino/Udp.h b/cores/arduino/Udp.h
index dc5644b..89f31c6 100644
--- a/cores/arduino/Udp.h
+++ b/cores/arduino/Udp.h
@@ -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