diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2008-07-30 14:47:36 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2008-07-30 14:47:36 +0000 |
commit | eac2983285b4bc40250771fb5141aa63c76a9a90 (patch) | |
tree | 9f51fab1b562f589d7ea6ce3dda53037ff2c929c /libraries/Ethernet/Ethernet.h | |
parent | f1a76708088659850b98a92779a2cb1aaf5793d8 (diff) |
Adding ethernet library.
Diffstat (limited to 'libraries/Ethernet/Ethernet.h')
-rw-r--r-- | libraries/Ethernet/Ethernet.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 <inttypes.h> +#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 |