From 006124136e89fd4570287b4298e3aa6fd79da552 Mon Sep 17 00:00:00 2001 From: lathoub Date: Sun, 16 Aug 2015 15:29:26 +0200 Subject: [PATCH] Provide for support for ZeroConf/Bonjour Provide for support for ZeroConf/Bonjour, by allowing derived classes access to _sock and _remaining. See https://github.com/lathoub/EthernetBonjour --- libraries/Ethernet/src/EthernetUdp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/Ethernet/src/EthernetUdp.h b/libraries/Ethernet/src/EthernetUdp.h index f318e3512..549e35517 100644 --- a/libraries/Ethernet/src/EthernetUdp.h +++ b/libraries/Ethernet/src/EthernetUdp.h @@ -43,11 +43,13 @@ class EthernetUDP : public UDP { private: - uint8_t _sock; // socket ID for Wiz5100 uint16_t _port; // local port to listen on IPAddress _remoteIP; // remote IP address for the incoming packet whilst it's being processed uint16_t _remotePort; // remote port for the incoming packet whilst it's being processed uint16_t _offset; // offset into the packet being sent + +protected: + uint8_t _sock; // socket ID for Wiz5100 uint16_t _remaining; // remaining bytes of incoming packet yet to be processed public: