diff options
author | schmirl <schmirl> | 2007-04-02 10:32:34 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2007-04-02 10:32:34 +0000 |
commit | 525574f9b01275aaff3e1c923cc91404365d501e (patch) | |
tree | 0533e2aaecdd3e7a1fe26176d12895f9bd054bc0 /server/connectionVTP.h | |
parent | cd7d4e3588af2cc36c8366fc8d65d0627a372c32 (diff) | |
download | vdr-plugin-streamdev-525574f9b01275aaff3e1c923cc91404365d501e.tar.gz vdr-plugin-streamdev-525574f9b01275aaff3e1c923cc91404365d501e.tar.bz2 |
Close connection when client is gone. Fixes high CPU load problem (#201)
Modified Files:
server/connection.h server/connectionHTTP.h
server/connectionVTP.h server/server.c server/streamer.c
server/streamer.h tools/select.c tools/select.h tools/source.c
Diffstat (limited to 'server/connectionVTP.h')
-rw-r--r-- | server/connectionVTP.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/connectionVTP.h b/server/connectionVTP.h index a8e76eb..c6ab223 100644 --- a/server/connectionVTP.h +++ b/server/connectionVTP.h @@ -2,9 +2,9 @@ #define VDR_STREAMDEV_SERVERS_CONNECTIONVTP_H #include "server/connection.h" +#include "server/livestreamer.h" class cTBSocket; -class cStreamdevLiveStreamer; class cLSTEHandler; class cLSTCHandler; class cLSTTHandler; @@ -39,6 +39,7 @@ public: virtual void Welcome(void); virtual void Reject(void); + virtual bool Abort(void) const; virtual void Detach(void); virtual void Attach(void); @@ -72,4 +73,9 @@ public: __attribute__ ((format (printf, 3, 4))); }; +inline bool cConnectionVTP::Abort(void) const +{ + return m_LiveStreamer && m_LiveStreamer->Abort(); +} + #endif // VDR_STREAMDEV_SERVERS_CONNECTIONVTP_H |