summaryrefslogtreecommitdiff
path: root/server/connection.h
diff options
context:
space:
mode:
authorFrank Schmirler <vdr@schmirler.de>2010-12-02 09:43:13 +0100
committerFrank Schmirler <vdr@schmirler.de>2010-12-02 09:43:13 +0100
commit7254a6752808830d5fc133e5362da6c47f3f84ff (patch)
tree673cc17f88ba80f8a67debb54f85ea100cde9ae5 /server/connection.h
parent31df0eaf8e49bc1cfea755bd88f3dd795c8f1ace (diff)
downloadvdr-plugin-streamdev-7254a6752808830d5fc133e5362da6c47f3f84ff.tar.gz
vdr-plugin-streamdev-7254a6752808830d5fc133e5362da6c47f3f84ff.tar.bz2
Snapshot 2009-06-11
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) { }