1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-22 08:22:04 +03:00

Moving all AVR specific libraries to hardware/avr

This commit is contained in:
Thibaut VIARD
2011-06-21 00:20:43 +02:00
parent 3da8227878
commit f4fdcb6e8e
110 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,34 @@
#ifndef client_h
#define client_h
#include "Arduino.h"
#include "Print.h"
class Client : public Stream {
public:
Client();
Client(uint8_t sock);
uint8_t status();
int connect(IPAddress ip, uint16_t port);
int connect(const char *host, uint16_t port);
virtual void write(uint8_t);
virtual void write(const char *str);
virtual void write(const uint8_t *buf, size_t size);
virtual int available();
virtual int read();
virtual int read(uint8_t *buf, size_t size);
virtual int peek();
virtual void flush();
void stop();
uint8_t connected();
operator bool();
friend class Server;
private:
static uint16_t _srcport;
uint8_t _sock;
};
#endif