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 
22 public:
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 
40 private:
41  void listencallback(IWvStream *s);
42 };
43 
44 #endif // __UNICONFDAEMON_H
UniConfDaemon::close
virtual void close()
Close the stream if it is open; isok() becomes false from now on.
Definition: uniconfdaemon.cc:39
UniConf
UniConf instances function as handles to subtrees of a UniConf tree and expose a high-level interface...
Definition: uniconf.h:50
IWvStream
Definition: iwvstream.h:24
UniConfDaemon::listen
void listen(WvStringParm lmoniker)
Start listening on a socket described by the given WvListener moniker.
Definition: uniconfdaemon.cc:84
IUniConfGen
An abstract data container that backs a UniConf tree.
Definition: uniconfgen.h:39
WvLog
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
Definition: wvlog.h:56
UniConfDaemon
Definition: uniconfdaemon.h:15
WvStream
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
Definition: wvstream.h:24
UniConfDaemon::UniConfDaemon
UniConfDaemon(const UniConf &cfg, bool auth, IUniConfGen *permgen)
Create a UniConfDaemon to serve the Uniconf tree cfg.
Definition: uniconfdaemon.cc:17
WvIStreamList
WvStreamList holds a list of WvStream objects – and its select() and callback() functions know how to...
Definition: wvistreamlist.h:20