Download NHK English news podcast automatically. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/

Dependencies:   BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem mbed-rtos mbed

Download NHK English news podcast automatically. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/

Revision:
4:ab3092d15121
Parent:
0:1855a008f28e
--- a/HTTPFile.h	Sun Aug 19 15:57:55 2012 +0000
+++ b/HTTPFile.h	Sat Sep 01 04:12:37 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