mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
First integration of the Arduino code in Processing 5503: PreProcessor and Compiler have been integrated with changes to the Sketch.
Compilation still has problems (Thread error on success, and can't handle non-pde files in a sketch). Modified the Mac OS X make.sh to copy the hardware, avr tools, and example over. Removing some of the antlr stuff. Disabling the Commander (command-line execution) for now. Added Library, LibraryManager, and Target. Added support for prefixed preferences (e.g. for boards and programmers).
This commit is contained in:
25
hardware/libraries/Ethernet/Server.h
Normal file
25
hardware/libraries/Ethernet/Server.h
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef Server_h
|
||||
#define Server_h
|
||||
|
||||
extern "C" {
|
||||
#include "utility/types.h"
|
||||
}
|
||||
|
||||
#include "Print.h"
|
||||
|
||||
class Client;
|
||||
|
||||
class Server : public Print {
|
||||
private:
|
||||
uint16_t _port;
|
||||
void accept();
|
||||
public:
|
||||
Server(uint16_t);
|
||||
Client available();
|
||||
void begin();
|
||||
virtual void write(uint8_t);
|
||||
virtual void write(const char *str);
|
||||
virtual void write(const uint8_t *buf, size_t size);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user