summaryrefslogtreecommitdiff
path: root/libraries/Ethernet/Ethernet.h
blob: a83d0520d34215f116a28144e80216f5b0df4df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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