File tree 3 files changed +14
-5
lines changed
hardware/arduino/cores/arduino
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ class NetClient : public Stream {
20
20
virtual void flush () = 0;
21
21
virtual void stop () = 0;
22
22
virtual uint8_t connected () = 0;
23
- virtual uint8_t operator ==(int ) = 0 ;
24
- virtual uint8_t operator !=(int ) = 0 ;
25
23
virtual operator bool () = 0;
26
24
};
27
25
Original file line number Diff line number Diff line change
1
+ #ifndef netserver_h
2
+ #define netserver_h
3
+
4
+ class NetClient ;
5
+
6
+ class NetServer {
7
+ public:
8
+ virtual void begin () =0;
9
+ };
10
+
11
+ #endif
Original file line number Diff line number Diff line change 1
1
#ifndef server_h
2
2
#define server_h
3
3
4
- #include " Print .h"
4
+ #include " NetServer .h"
5
5
6
6
class Client ;
7
7
8
8
class Server :
9
- public Print {
9
+ public NetServer {
10
10
private:
11
11
uint16_t _port;
12
12
void accept ();
13
13
public:
14
14
Server (uint16_t );
15
15
Client available ();
16
- void begin ();
16
+ virtual void begin ();
17
17
virtual void write (uint8_t );
18
18
virtual void write (const char *str);
19
19
virtual void write (const uint8_t *buf, size_t size);
You can’t perform that action at this time.
0 commit comments