X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fbase%2Fhttpstream.h;fp=lib%2Fbase%2Fhttpstream.h;h=f02bb24f298b22fa44b4699b7e8672992ab1d911;hp=0000000000000000000000000000000000000000;hb=377c2adbf11ed3b293bced1a4195cefd8aa6110f;hpb=a83232fb2b68ec4d0681dfd858568bab9f12ebf8 diff --git a/lib/base/httpstream.h b/lib/base/httpstream.h new file mode 100644 index 0000000..f02bb24 --- /dev/null +++ b/lib/base/httpstream.h @@ -0,0 +1,28 @@ +#ifndef __lib_base_httpstream_h +#define __lib_base_httpstream_h + +#include +#include +#include +#include + +class eHttpStream: public iTsSource, public eSocketBase, public Object +{ + DECLARE_REF(eHttpStream); + + int streamSocket; + + /* iTsSource */ + off_t lseek(off_t offset, int whence); + ssize_t read(off_t offset, void *buf, size_t count); + off_t length(); + int valid(); + +public: + eHttpStream(); + ~eHttpStream(); + int open(const char *url); + int close(); +}; + +#endif