Download NHK English news podcast automatically. XML Parser "spxml" is used. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem spxml mbed-rtos mbed
Fork of mpod_nhk_english by
Download NHK English news podcast automatically.
XML Parser "spxml" is used.
This application requires mpod mother board.
See also http://mbed.org/users/geodenx/notebook/mpod/
Diff: HTTPFile.h
- Revision:
- 7:ad9fcf0e1bc5
- Parent:
- 0:1855a008f28e
--- a/HTTPFile.h Fri Aug 24 17:00:07 2012 +0000 +++ b/HTTPFile.h Sat Sep 01 04:09:48 2012 +0000 @@ -25,6 +25,11 @@ void clear(); protected: + /** Reset stream to its beginning + * Called by the HTTPClient on each new request + */ + virtual void readReset(); + /** Read a piece of data to be transmitted * @param buf Pointer to the buffer on which to copy the data * @param len Length of the buffer @@ -32,6 +37,11 @@ */ virtual int read(char* buf, size_t len, size_t* pReadLen); + /** Reset stream to its beginning + * Called by the HTTPClient on each new request + */ + virtual void writeReset(); + /** Write a piece of data transmitted by the server * @param buf Pointer to the buffer from which to copy the data * @param len Length of the buffer