From 302fa2e67276bd0674e81e2a9a01b9e91dd45d8c Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Thu, 30 Dec 2004 22:43:55 +0000 Subject: Initial revision --- server/connectionVTP.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 server/connectionVTP.h (limited to 'server/connectionVTP.h') diff --git a/server/connectionVTP.h b/server/connectionVTP.h new file mode 100644 index 0000000..ec42d23 --- /dev/null +++ b/server/connectionVTP.h @@ -0,0 +1,57 @@ +#ifndef VDR_STREAMDEV_SERVERS_CONNECTIONVTP_H +#define VDR_STREAMDEV_SERVERS_CONNECTIONVTP_H + +#include "server/connection.h" + +class cDevice; +class cTBSocket; +class cStreamdevLiveStreamer; + +class cConnectionVTP: public cServerConnection { +private: + cTBSocket *m_DataSockets[si_Count]; + eStreamType m_ClientCaps; + bool m_StreamPIDS; + + cStreamdevLiveStreamer *m_LiveStreamer; + + // Members adopted from SVDRP + cRecordings Recordings; + +public: + cConnectionVTP(void); + virtual ~cConnectionVTP(); + + virtual void Welcome(void); + virtual void Reject(void); + + virtual void Detach(void); + virtual void Attach(void); + + bool Command(char *Cmd); + bool CmdCAPS(char *Opts); + bool CmdPROV(char *Opts); + bool CmdPORT(char *Opts); + bool CmdTUNE(char *Opts); + bool CmdADDP(char *Opts); + bool CmdDELP(char *Opts); + bool CmdADDF(char *Opts); + bool CmdDELF(char *Opts); + bool CmdABRT(char *Opts); + bool CmdQUIT(char *Opts); + bool CmdSUSP(char *Opts); + + // Commands adopted from SVDRP + bool ReplyWrapper(int Code, const char *fmt, ...); + bool CmdLSTE(char *Opts); + bool CmdLSTR(char *Opts); + bool CmdDELR(char *Opts); + bool CmdLSTT(char *Opts); + bool CmdMODT(char *Opts); + bool CmdNEWT(char *Opts); + bool CmdDELT(char *Opts); + + bool Respond(int Code, const char *Message); +}; + +#endif // VDR_STREAMDEV_SERVERS_CONNECTIONVTP_H -- cgit v1.2.3