Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Ethernet.h

By: a guest on Oct 21st, 2011  |  syntax: C  |  size: 0.51 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifndef ethernet_h
  2. #define ethernet_h
  3.  
  4. #include <inttypes.h>
  5. //#include "w5100.h"
  6. #include "Client.h"
  7. #include "Server.h"
  8.  
  9. #define MAX_SOCK_NUM 4
  10.  
  11. class EthernetClass {
  12. private:
  13. public:
  14.   static uint8_t _state[MAX_SOCK_NUM];
  15.   static uint16_t _server_port[MAX_SOCK_NUM];
  16.   void begin(uint8_t *, uint8_t *);
  17.   void begin(uint8_t *, uint8_t *, uint8_t *);
  18.   void begin(uint8_t *, uint8_t *, uint8_t *, uint8_t *);
  19.   friend class Client;
  20.   friend class Server;
  21. };
  22.  
  23. extern EthernetClass Ethernet;
  24.  
  25. #endif
  26.  
  27.