WvStreams
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
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.
Definition: uniconfgen.h:40
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...
Definition: uniconf.h:51
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Definition: wvstring.h:94
WvStreamList holds a list of WvStream objects – and its select() and callback() functions know how to...
Definition: wvistreamlist.h:21
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
Definition: wvlog.h:57
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
Definition: wvstream.h:25