|
tinyhttp
|
Alternative Client Implementatioin using Sockets so that the functionality can run stand alone on a server or desktop. More...
#include <AltClient.h>
Public Member Functions | |
| Client (int bufferSize=1024) | |
| int | available () |
| int | connect (const char *address, int port) |
| int | connect (Url &url) |
| bool | connected () |
| void | flush () |
| operator bool () | |
| int | peek () |
| int | print (const char *str) |
| int | println (const char *str) |
| int | read () |
| int | read (char *buffer, int len) |
| int | read (uint8_t *buffer, int len) |
| int | readBytesUntil (char untilChar, char *str, int len) |
| void | stop () |
| int | write (char c) |
| int | write (const char *str, int len) |
| int | write (const uint8_t *str, int len) |
Protected Attributes | |
| int | bufferSize = 512 |
| bool | is_connected |
| RingBuffer | readBuffer |
| struct sockaddr_in | serv_addr |
| int | sock = 0 |
| int | valread |
| RingBuffer | writeBuffer |
Alternative Client Implementatioin using Sockets so that the functionality can run stand alone on a server or desktop.