Mitesh Patel / Mbed 2 deprecated camera_online_server

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

HTTPDynamicPageData Class Reference

HTTPDynamicPageData Class Reference

A datastorage helper for the HTTPDynamicPage class. More...

#include <HTTPDynamicPage.h>

Data Fields

void(* page_free )(void *page)
 Pointer to garbage collection function (for freeing page data) Should be set by callback function to a suitable free() if page is dynamically allocated.
char * page
 Pointer to the page data.
int size
 Page data size As long as the page is NULL terminated you don't have to tell the data length.
int _left
 Page data size left for the upload.

Detailed Description

A datastorage helper for the HTTPDynamicPage class.

Stores dynamically created page data and the size left to upload.

Definition at line 10 of file HTTPDynamicPage.h.


Field Documentation

int _left

Page data size left for the upload.

Definition at line 35 of file HTTPDynamicPage.h.

char* page

Pointer to the page data.

Definition at line 26 of file HTTPDynamicPage.h.

void(* page_free)(void *page)

Pointer to garbage collection function (for freeing page data) Should be set by callback function to a suitable free() if page is dynamically allocated.

Definition at line 23 of file HTTPDynamicPage.h.

int size

Page data size As long as the page is NULL terminated you don't have to tell the data length.

But if you want to send binary data you should tell us the size.

Definition at line 32 of file HTTPDynamicPage.h.