mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Pulled out Server API into the NetServer base class, and a few minor changes to get the NetClient API to work well with the WiFly library
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
#ifndef server_h
|
||||
#define server_h
|
||||
|
||||
#include "Print.h"
|
||||
#include "NetServer.h"
|
||||
|
||||
class Client;
|
||||
|
||||
class Server :
|
||||
public Print {
|
||||
public NetServer {
|
||||
private:
|
||||
uint16_t _port;
|
||||
void accept();
|
||||
public:
|
||||
Server(uint16_t);
|
||||
Client available();
|
||||
void begin();
|
||||
virtual void begin();
|
||||
virtual void write(uint8_t);
|
||||
virtual void write(const char *str);
|
||||
virtual void write(const uint8_t *buf, size_t size);
|
||||
|
Reference in New Issue
Block a user