WvStreams
include/uniconfdaemon.h
1/*
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2004 Net Integration Technologies, Inc.
4 *
5 * Manages a UniConf daemon.
6 */
7#ifndef __UNICONFDAEMON_H
8#define __UNICONFDAEMON_H
9
10#include "wvlog.h"
11#include "wvistreamlist.h"
12#include "uniconf.h"
13#include "wvaddr.h"
14
15class UniConfDaemon : public WvIStreamList
16{
17 UniConf cfg;
18 WvLog log, debug;
19 bool authenticate;
20 IUniConfGen *permgen;
21
22public:
27 UniConfDaemon(const UniConf &cfg, bool auth, IUniConfGen *permgen);
28 virtual ~UniConfDaemon();
29
30 virtual void close();
31
32 void accept(WvStream *stream);
33
38 void listen(WvStringParm lmoniker);
39
40private:
41 void listencallback(IWvStream *s);
42};
43
44#endif // __UNICONFDAEMON_H
An abstract data container that backs a UniConf tree.
void listen(WvStringParm lmoniker)
Start listening on a socket described by the given WvListener moniker.
UniConfDaemon(const UniConf &cfg, bool auth, IUniConfGen *permgen)
Create a UniConfDaemon to serve the Uniconf tree cfg.
virtual void close()
Close the stream if it is open; isok() becomes false from now on.
UniConf instances function as handles to subtrees of a UniConf tree and expose a high-level interface...
WvStreamList holds a list of WvStream objects – and its select() and callback() functions know how to...
WvStream()
Basic constructor for just a do-nothing WvStream.
Definition wvstream.cc:249