1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

port stopAllExcept to WiFiUDP to keep the interface the same

This commit is contained in:
Markus Sattler 2015-08-29 15:39:12 +02:00
parent 966bf45b35
commit f96ea403dd
2 changed files with 10 additions and 0 deletions

View File

@ -290,3 +290,12 @@ void WiFiUDP::stopAll()
it->stop();
}
}
void WiFiUDP::stopAllExcept(WiFiUDP * exC) {
for (WiFiUDP* it = _s_first; it; it = it->_next) {
if (it->_ctx != exC->_ctx) {
DEBUGV("%s %08x %08x\n", __func__, (uint32_t) it, (uint32_t) _s_first);
it->stop();
}
}
}

View File

@ -105,6 +105,7 @@ public:
uint16_t localPort();
static void stopAll();
static void stopAllExcept(WiFiUDP * exC);
};