chipKIT® Development Platform

Inspired by Arduino™

Last edit: 2021-03-21 22:34 by Majenko

Client

Client
Quick Look
Hardware WF32 or Wi-Fire
Core Client.h

Client provides an interface to be used by other classes.

  1. Detailed Introduction

  2. Full library usage

    1. Client

      1. Virtual Public Functions

        1. connect(IPAddress ip, uint16_t port)

        2. connect(const char *host, uint16_t port)

        3. write(uint8_t)

        4. write(const uint8_t *buf, size_t size)

        5. available()

        6. read()

        7. read(uint8_t *buf, size_t size)

        8. peek()

        9. flush()

        10. stop()

        11. connected()

      2. Virtual User Defined Operators

        1. bool()

  3. External Links

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