1
0
Fork 0
This repository has been archived on 2019-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
arduinisten/arduino-0022-linux-x64/libraries/Ethernet/Ethernet.h

26 lines
501 B
C
Raw Normal View History

2011-02-23 21:47:18 +01:00
#ifndef ethernet_h
#define ethernet_h
2010-03-30 20:09:55 +02:00
#include <inttypes.h>
2011-02-23 21:47:18 +01:00
//#include "w5100.h"
2010-03-30 20:09:55 +02:00
#include "Client.h"
#include "Server.h"
2011-02-23 21:47:18 +01:00
#define MAX_SOCK_NUM 4
2010-03-30 20:09:55 +02:00
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