Browse Source

Support generic UDP beginMulticast()

teensy4-core
PaulStoffregen 6 years ago
parent
commit
e1676586f1
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      teensy/Udp.h
  2. +1
    -0
      teensy3/Udp.h

+ 1
- 0
teensy/Udp.h View File



public: 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; }
virtual void stop() =0; // Finish with the UDP socket virtual void stop() =0; // Finish with the UDP socket


// Sending UDP packets // Sending UDP packets

+ 1
- 0
teensy3/Udp.h View File



public: 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; }
virtual void stop() =0; // Finish with the UDP socket virtual void stop() =0; // Finish with the UDP socket


// Sending UDP packets // Sending UDP packets

Loading…
Cancel
Save