Skip to content

Commit 978249f

Browse files
committed
WiFiServer - don't inherit from Print and Server
because print-to-all-clients is not implemented
1 parent 990e3d5 commit 978249f

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

libraries/WiFi/src/WiFiServer.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ int WiFiServer::setTimeout(uint32_t seconds){
3232
return setsockopt(sockfd, SOL_SOCKET, SO_SNDTIMEO, (char *)&tv, sizeof(struct timeval));
3333
}
3434

35-
size_t WiFiServer::write(const uint8_t *data, size_t len){
36-
return 0;
37-
}
38-
39-
void WiFiServer::stopAll(){}
40-
4135
WiFiClient WiFiServer::available(){
4236
return accept();
4337
}

libraries/WiFi/src/WiFiServer.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "WiFiClient.h"
2525
#include "IPAddress.h"
2626

27-
class WiFiServer : public Server {
27+
class WiFiServer {
2828
private:
2929
int sockfd;
3030
int _accepted_sockfd = -1;
@@ -52,18 +52,12 @@ class WiFiServer : public Server {
5252
void setNoDelay(bool nodelay);
5353
bool getNoDelay();
5454
bool hasClient();
55-
size_t write(const uint8_t *data, size_t len);
56-
size_t write(uint8_t data){
57-
return write(&data, 1);
58-
}
59-
using Print::write;
6055

6156
void end();
6257
void close();
6358
void stop();
6459
operator bool(){return _listening;}
6560
int setTimeout(uint32_t seconds);
66-
void stopAll();
6761
};
6862

6963
#endif /* _WIFISERVER_H_ */

0 commit comments

Comments
 (0)