diff options
author | lordjaxom <lordjaxom> | 2004-12-30 22:43:55 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-30 22:43:55 +0000 |
commit | 302fa2e67276bd0674e81e2a9a01b9e91dd45d8c (patch) | |
tree | a454884a16e0ffa48b5ce3e4ce1a66eb874a9de0 /server/connectionHTTP.h | |
download | vdr-plugin-streamdev-302fa2e67276bd0674e81e2a9a01b9e91dd45d8c.tar.gz vdr-plugin-streamdev-302fa2e67276bd0674e81e2a9a01b9e91dd45d8c.tar.bz2 |
Initial revision
Diffstat (limited to 'server/connectionHTTP.h')
-rw-r--r-- | server/connectionHTTP.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/server/connectionHTTP.h b/server/connectionHTTP.h new file mode 100644 index 0000000..5b8abbe --- /dev/null +++ b/server/connectionHTTP.h @@ -0,0 +1,44 @@ +/* + * $Id: connectionHTTP.h,v 1.1 2004/12/30 22:44:18 lordjaxom Exp $ + */ + +#ifndef VDR_STREAMDEV_SERVERS_CONNECTIONHTTP_H +#define VDR_STREAMDEV_SERVERS_CONNECTIONHTTP_H + +#include "connection.h" + +#include <tools/select.h> + +class cChannel; +class cStreamdevLiveStreamer; + +class cConnectionHTTP: public cServerConnection { +private: + enum eHTTPStatus { + hsRequest, + hsHeaders, + hsTransfer, + hsListing, + }; + + cChannel *m_Channel; + cChannel *m_ListChannel; + cStreamdevLiveStreamer *m_LiveStreamer; + eStreamType m_StreamType; + eHTTPStatus m_Status; + bool m_Startup; + +public: + cConnectionHTTP(void); + virtual ~cConnectionHTTP(); + + virtual void Detach(void); + virtual void Attach(void); + + virtual bool Command(char *Cmd); + bool CmdGET(char *Opts); + + virtual void Flushed(void); +}; + +#endif // VDR_STREAMDEV_SERVERS_CONNECTIONVTP_H |