aboutsummaryrefslogtreecommitdiff
path: root/libraries/Ethernet/Ethernet.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-06-01 08:32:11 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-06-01 08:32:11 +0000
commitdb605dd18b11ecfb5cd9f92c721c52cb70543384 (patch)
tree8a9029ffc560970ce1204ba86785ad44ef044906 /libraries/Ethernet/Ethernet.h
First integration of the Arduino code in Processing 5503: PreProcessor and Compiler have been integrated with changes to the Sketch.
Compilation still has problems (Thread error on success, and can't handle non-pde files in a sketch). Modified the Mac OS X make.sh to copy the hardware, avr tools, and example over. Removing some of the antlr stuff. Disabling the Commander (command-line execution) for now. Added Library, LibraryManager, and Target. Added support for prefixed preferences (e.g. for boards and programmers).
Diffstat (limited to 'libraries/Ethernet/Ethernet.h')
-rw-r--r--libraries/Ethernet/Ethernet.h22
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