1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Adding SPI library and revising Ethernet library (Christian Maglie).

This commit is contained in:
David A. Mellis
2010-08-02 18:59:44 +00:00
parent 78e093b482
commit e24b135755
24 changed files with 1429 additions and 2524 deletions

View File

@ -1,17 +1,15 @@
#ifndef Client_h
#define Client_h
#ifndef client_h
#define client_h
#include "Print.h"
class Client : public Print {
private:
static uint16_t _srcport;
uint8_t _sock;
uint8_t *_ip;
uint16_t _port;
public:
Client();
Client(uint8_t);
Client(uint8_t *, uint16_t);
uint8_t status();
uint8_t connect();
virtual void write(uint8_t);
@ -25,7 +23,15 @@ public:
uint8_t operator==(int);
uint8_t operator!=(int);
operator bool();
friend class Server;
private:
static uint16_t _srcport;
bool _connected;
uint8_t _sock;
uint8_t *_ip;
uint16_t _port;
};
#endif