mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
WiFiServer - operator bool() and method end() (#8995)
This commit is contained in:
parent
497dacc78f
commit
30c6df4639
@ -173,6 +173,14 @@ void WiFiServer::stop() {
|
||||
close();
|
||||
}
|
||||
|
||||
void WiFiServer::end() {
|
||||
close();
|
||||
}
|
||||
|
||||
WiFiServer::operator bool() {
|
||||
return (status() != CLOSED);
|
||||
}
|
||||
|
||||
err_t WiFiServer::_accept(tcp_pcb* apcb, err_t err) {
|
||||
(void) err;
|
||||
DEBUGV("WS:ac\r\n");
|
||||
|
@ -100,6 +100,8 @@ public:
|
||||
uint16_t port() const;
|
||||
void close();
|
||||
void stop();
|
||||
void end();
|
||||
explicit operator bool();
|
||||
|
||||
using ClientType = WiFiClient;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user