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