Fix some lines that exceed 80 characters.
[wvstreams.git] / include / uniconfdaemon.h
blob22bb4a4d45b349434c4fbbc20af7a05e810f2cb0
1 /*
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2004 Net Integration Technologies, Inc.
5 * Manages a UniConf daemon.
6 */
7 #ifndef __UNICONFDAEMON_H
8 #define __UNICONFDAEMON_H
10 #include "wvlog.h"
11 #include "wvistreamlist.h"
12 #include "uniconf.h"
13 #include "wvaddr.h"
15 class UniConfDaemon : public WvIStreamList
17 UniConf cfg;
18 WvLog log, debug;
19 bool authenticate;
20 IUniConfGen *permgen;
22 public:
23 /**
24 * Create a UniConfDaemon to serve the Uniconf tree cfg. If auth is
25 * true, require authentication through PAM before accepting connections.
27 UniConfDaemon(const UniConf &cfg, bool auth, IUniConfGen *permgen);
28 virtual ~UniConfDaemon();
30 virtual void close();
32 void accept(WvStream *stream);
34 /**
35 * Start listening on a socket described by the given WvListener
36 * moniker.
38 void listen(WvStringParm lmoniker);
40 private:
41 void listencallback(IWvStream *s);
44 #endif // __UNICONFDAEMON_H