mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
2fa8deb92d
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).
26 lines
391 B
C++
26 lines
391 B
C++
#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
|