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