1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00

WiFi API first draft

This commit is contained in:
Mimmo
2011-02-28 13:49:08 +01:00
commit 7f3e8a6c5b
9 changed files with 767 additions and 0 deletions

25
WiFi/Server.h Executable file
View File

@ -0,0 +1,25 @@
#ifndef Server_h
#define Server_h
extern "C" {
#include "utility/wl_types.h"
}
#include "Print.h"
class Client;
class Server : public Print {
private:
uint16_t _port;
void* pcb;
public:
Server(uint16_t);
Client available(uint8_t*);
void begin();
virtual void write(uint8_t);
virtual void write(const char *str);
virtual void write(const uint8_t *buf, size_t size);
};
#endif