WvStreams
uniconfdaemon.h
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2004 Net Integration Technologies, Inc.
00004  *
00005  * Manages a UniConf daemon.
00006  */
00007 #ifndef __UNICONFDAEMON_H
00008 #define __UNICONFDAEMON_H
00009 
00010 #include "wvlog.h"
00011 #include "wvistreamlist.h"
00012 #include "uniconf.h"
00013 #include "wvaddr.h"
00014 
00015 class UniConfDaemon : public WvIStreamList
00016 {
00017     UniConf cfg;
00018     WvLog log, debug;
00019     bool authenticate;
00020     IUniConfGen *permgen;
00021 
00022 public:
00027     UniConfDaemon(const UniConf &cfg, bool auth, IUniConfGen *permgen);
00028     virtual ~UniConfDaemon();
00029 
00030     virtual void close();
00031 
00032     void accept(WvStream *stream);
00033     
00038     void listen(WvStringParm lmoniker);
00039 
00040 private:
00041     void listencallback(IWvStream *s);
00042 };
00043 
00044 #endif // __UNICONFDAEMON_H