2011-08-29 14:36:28 -07:00
|
|
|
#ifndef ethernetserver_h
|
|
|
|
#define ethernetserver_h
|
2008-07-30 07:47:36 -07:00
|
|
|
|
2011-08-29 14:36:28 -07:00
|
|
|
#include "Server.h"
|
2008-07-30 07:47:36 -07:00
|
|
|
|
2011-08-29 14:36:28 -07:00
|
|
|
class EthernetClient;
|
2008-07-30 07:47:36 -07:00
|
|
|
|
2011-08-29 14:36:28 -07:00
|
|
|
class EthernetServer :
|
|
|
|
public Server {
|
2008-07-30 07:47:36 -07:00
|
|
|
private:
|
|
|
|
uint16_t _port;
|
|
|
|
void accept();
|
|
|
|
public:
|
2011-08-29 14:36:28 -07:00
|
|
|
EthernetServer(uint16_t);
|
|
|
|
EthernetClient available();
|
2011-03-31 08:19:17 -07:00
|
|
|
virtual void begin();
|
2011-08-26 13:08:14 -07:00
|
|
|
virtual size_t write(uint8_t);
|
|
|
|
virtual size_t write(const uint8_t *buf, size_t size);
|
2011-09-07 15:41:05 -07:00
|
|
|
using Print::write;
|
2008-07-30 07:47:36 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|