Skip to content

Instantly share code, notes, and snippets.

View jwall's full-sized avatar

Jamie Wall jwall

View GitHub Profile
@obiltschnig
obiltschnig / gist:dc2e90643e6fabe7d938
Created March 13, 2015 05:46
Poco::Net::HTTPRequestHandler subclass for sending file ranges, as needed for HTTP-based streaming.
class MediaRequestHandler: public Poco::Net::HTTPRequestHandler
{
public:
enum
{
BUFFER_SIZE = 8192
};
MediaRequestHandler(const std::string& mediaPath):
_mediaPath(mediaPath)