Client

From chipKIT
Jump to: navigation, search
Client
Quick Look
Hardware WF32 or Wi-Fire
Core Client.h


Client provides an interface to be used by other classes.

Detailed Introduction

Client inherits from Stream and contains multiple overridable methods.

Full library usage

Client


Virtual Public Functions


connect(IPAddress ip, uint16_t port)

virtual int connect(IPAddress ip, uint16_t port) =0;

connect(const char *host, uint16_t port)

virtual int connect(const char *host, uint16_t port) =0;

write(uint8_t)

virtual size_t write(uint8_t) =0;

write(const uint8_t *buf, size_t size)

virtual size_t write(const uint8_t *buf, size_t size) =0;

available()

virtual int available() = 0;

read()

virtual int read() = 0;

read(uint8_t *buf, size_t size)

virtual int read(uint8_t *buf, size_t size) = 0;

peek()

virtual int peek() = 0;

flush()

virtual void flush() = 0;

stop()

virtual void stop() = 0;

connected()

virtual uint8_t connected() = 0;

Virtual User Defined Operators

bool()

virtual operator bool() = 0;


An interface to tell the server to begin listening for incoming connections.

External Links