From eac2983285b4bc40250771fb5141aa63c76a9a90 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 30 Jul 2008 14:47:36 +0000 Subject: Adding ethernet library. --- libraries/Ethernet/Ethernet.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libraries/Ethernet/Ethernet.h (limited to 'libraries/Ethernet/Ethernet.h') diff --git a/libraries/Ethernet/Ethernet.h b/libraries/Ethernet/Ethernet.h new file mode 100644 index 0000000..bdfc4dd --- /dev/null +++ b/libraries/Ethernet/Ethernet.h @@ -0,0 +1,22 @@ +#ifndef Ethernet_h +#define Ethernet_h + +#include +#include "Client.h" +#include "Server.h" + +class EthernetClass { +private: +public: + static uint8_t _state[MAX_SOCK_NUM]; + static uint16_t _server_port[MAX_SOCK_NUM]; + void begin(uint8_t *, uint8_t *); + void begin(uint8_t *, uint8_t *, uint8_t *); + void begin(uint8_t *, uint8_t *, uint8_t *, uint8_t *); + friend class Client; + friend class Server; +}; + +extern EthernetClass Ethernet; + +#endif -- cgit v1.2.3-18-g5258