summaryrefslogtreecommitdiff
path: root/server/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/connection.h')
-rw-r--r--server/connection.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/connection.h b/server/connection.h
index f68f84a..2df850e 100644
--- a/server/connection.h
+++ b/server/connection.h
@@ -1,5 +1,5 @@
/*
- * $Id: connection.h,v 1.3 2005/05/09 20:22:29 lordjaxom Exp $
+ * $Id: connection.h,v 1.4 2007/04/02 10:32:34 schmirl Exp $
*/
#ifndef VDR_STREAMDEV_SERVER_CONNECTION_H
@@ -69,6 +69,10 @@ public:
the connection shall be closed and removed by the server */
virtual bool Read(void);
+ /* Is polled regularely by the server. Returns true if the connection
+ needs to be terminated. */
+ virtual bool Abort(void) const = 0;
+
/* Will make the socket close after sending all queued output data */
void DeferClose(void) { m_DeferClose = true; }