diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-10-20 22:16:19 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2011-10-20 22:16:19 -0700 |
commit | fc944ff979dbbd49a57722fe2d1d2acf47312eb4 (patch) | |
tree | 38cc3a5c5c8f24f55068fc4ffa73d018169fc2df /libraries/Ethernet/Ethernet.h |
Inital commit... halfway through the project
Diffstat (limited to 'libraries/Ethernet/Ethernet.h')
-rw-r--r-- | libraries/Ethernet/Ethernet.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/Ethernet/Ethernet.h b/libraries/Ethernet/Ethernet.h new file mode 100644 index 0000000..a83d052 --- /dev/null +++ b/libraries/Ethernet/Ethernet.h @@ -0,0 +1,25 @@ +#ifndef ethernet_h
+#define ethernet_h
+
+#include <inttypes.h>
+//#include "w5100.h"
+#include "Client.h"
+#include "Server.h"
+
+#define MAX_SOCK_NUM 4
+
+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
|