Dependents: Lab3Translator lab3_Radio_design Sync WeatherPlatform_20110408 ... more
HTTPStream Class Reference
HTTP Client Streaming tool. More...
#include <HTTPStream.h>
Inherits HTTPData, and HTTPData.
Public Member Functions | |
HTTPStream () | |
Instantiates the object. | |
void | readNext (byte *buf, int size) |
Starts to read into buffer. | |
bool | readable () |
Returns whether there is data available to read. | |
int | readLen () |
Returns the actual length of the payload written in the buffer. | |
HTTPStream () | |
Instantiates the object. | |
void | readNext (byte *buf, int size) |
Starts to read into buffer. | |
bool | readable () |
Returns whether there is data available to read. | |
int | readLen () |
Returns the actual length of the payload written in the buffer. | |
Friends | |
class | HTTPClient |
Detailed Description
HTTP Client Streaming tool.
This class allows you to stream data from the web using a persisting HTTP connection. To use it properly you must use a non-blocking HTTPClient method.
Definition at line 41 of file LPC1768/services/http/client/data/HTTPStream.h.
Constructor & Destructor Documentation
HTTPStream | ( | ) |
Instantiates the object.
HTTPStream | ( | ) |
Instantiates the object.
Member Function Documentation
bool readable | ( | ) |
Returns whether there is data available to read.
bool readable | ( | ) |
Returns whether there is data available to read.
int readLen | ( | ) |
Returns the actual length of the payload written in the buffer.
int readLen | ( | ) |
Returns the actual length of the payload written in the buffer.
void readNext | ( | byte * | buf, |
int | size | ||
) |
Starts to read into buffer.
Passes a buffer of address buf and size size to the instance. When it receives data it will be stored in this buffer. When the buffer is full it throttles the client until this function is called again.
void readNext | ( | byte * | buf, |
int | size | ||
) |
Starts to read into buffer.
Passes a buffer of address buf and size size to the instance. When it receives data it will be stored in this buffer. When the buffer is full it throttles the client until this function is called again.
Generated on Fri Jul 15 2022 06:20:13 by 1.7.2