Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clUIServer Class Reference

User interface server. More...

#include <UIServ.hh>

Collaboration diagram for clUIServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clUIServer ()
 ~clUIServer ()
int Wait ()
void NoLogShutdown ()

Public Attributes

clLogFileLog

Private Attributes

bool bLogShutdown
clCfgFileCfg
clSockServSServ

Detailed Description

User interface server.

This works like inetd. It starts waiting for connections in single predifined port. When connection arrives it receives process request from client, duplicates handles and fork() and exec() the requested process and then continues to wait for new connections.

There are several advatages of this behaviour:

Definition at line 47 of file UIServ.hh.


Constructor & Destructor Documentation

clUIServer::clUIServer  ) 
 

Definition at line 194 of file UIServ.cc.

References clLogFile::Add(), bLogShutdown, Cfg, clSockServ::GetErrno(), clLogFile::GetError(), clCfgFile::GetInt(), Log, LOGFILE_NOERROR, SServ, UIS_CFGFILE, UIS_CONV_BUF_SIZE, UIS_DEFAULT_PORT, and UIS_LOGFILE.

clUIServer::~clUIServer  ) 
 

Definition at line 223 of file UIServ.cc.

References clLogFile::Add(), bLogShutdown, Cfg, Log, and SServ.


Member Function Documentation

int clUIServer::Wait  ) 
 

Definition at line 232 of file UIServ.cc.

References clLogFile::Add(), bRun, clSockServ::GetErrno(), clSockOp::GetPeerName(), Log, clSockOp::SetCloseOnDestruct(), clSockOp::SetHandle(), SOp, SServ, UIS_CONV_BUF_SIZE, UIS_SHUTDOWNFILE, UIS_TIMEOUT, and clSockServ::WaitForConnect().

Referenced by main().

void clUIServer::NoLogShutdown  )  [inline]
 

Definition at line 57 of file UIServ.hh.

References bLogShutdown.

Referenced by main().


Member Data Documentation

bool clUIServer::bLogShutdown [private]
 

Definition at line 49 of file UIServ.hh.

Referenced by clUIServer(), NoLogShutdown(), and ~clUIServer().

clCfgFile* clUIServer::Cfg [private]
 

Definition at line 50 of file UIServ.hh.

Referenced by clUIServer(), and ~clUIServer().

clSockServ* clUIServer::SServ [private]
 

Definition at line 51 of file UIServ.hh.

Referenced by clUIServer(), Wait(), and ~clUIServer().

clLogFile* clUIServer::Log
 

Definition at line 53 of file UIServ.hh.

Referenced by clUIServer(), Wait(), and ~clUIServer().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:28 2003 for HASAS by doxygen 1.3.3