summaryrefslogtreecommitdiff
path: root/server/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/connection.h')
-rw-r--r--server/connection.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/connection.h b/server/connection.h
index fe828d9..2c28a09 100644
--- a/server/connection.h
+++ b/server/connection.h
@@ -1,5 +1,5 @@
/*
- * $Id: connection.h,v 1.5 2007/04/16 11:01:02 schmirl Exp $
+ * $Id: connection.h,v 1.7 2009/02/13 10:39:22 schmirl Exp $
*/
#ifndef VDR_STREAMDEV_SERVER_CONNECTION_H
@@ -44,9 +44,12 @@ protected:
public:
/* If you derive, specify a short string such as HTTP for Protocol, which
will be displayed in error messages */
- cServerConnection(const char *Protocol);
+ cServerConnection(const char *Protocol, int Type = SOCK_STREAM);
virtual ~cServerConnection();
+ /* If true, any client IP will be accepted */
+ virtual bool CanAuthenticate(void) { return false; }
+
/* Gets called if the client has been accepted by the core */
virtual void Welcome(void) { }