CLOUD: Add Reader sketch
That should be part of the Client, I guess. Reader is not ready to continue reading from place it stopped, but it already works as it should for the case when whole content is available.
This commit is contained in:
parent
4d88f51de9
commit
79b39bf0d0
3 changed files with 294 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
#include "common/timer.h"
|
||||
#include "common/textconsole.h"
|
||||
#include <SDL/SDL_net.h>
|
||||
#include "reader.h"
|
||||
|
||||
namespace Common {
|
||||
class MemoryReadWriteStream;
|
||||
|
@ -47,6 +48,9 @@ LocalWebserver::LocalWebserver(): _set(nullptr), _serverSocket(nullptr), _timerS
|
|||
addPathHandler("/create", _createDirectoryHandler.getHandler());
|
||||
addPathHandler("/download", _downloadFileHandler.getHandler());
|
||||
_defaultHandler = _resourceHandler.getHandler();
|
||||
|
||||
Reader reader;
|
||||
reader.readResponse();
|
||||
}
|
||||
|
||||
LocalWebserver::~LocalWebserver() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue