#include <UIServ.hh>
Collaboration diagram for clUIServer:

Public Member Functions | |
| clUIServer () | |
| ~clUIServer () | |
| int | Wait () |
| void | NoLogShutdown () |
Public Attributes | |
| clLogFile * | Log |
Private Attributes | |
| bool | bLogShutdown |
| clCfgFile * | Cfg |
| clSockServ * | SServ |
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.
|
|
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. |
|
|
Definition at line 223 of file UIServ.cc. References clLogFile::Add(), bLogShutdown, Cfg, Log, and SServ. |
|
|
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(). |
|
|
Definition at line 57 of file UIServ.hh. References bLogShutdown. Referenced by main(). |
|
|
Definition at line 49 of file UIServ.hh. Referenced by clUIServer(), NoLogShutdown(), and ~clUIServer(). |
|
|
Definition at line 50 of file UIServ.hh. Referenced by clUIServer(), and ~clUIServer(). |
|
|
Definition at line 51 of file UIServ.hh. Referenced by clUIServer(), Wait(), and ~clUIServer(). |
|
|
Definition at line 53 of file UIServ.hh. Referenced by clUIServer(), Wait(), and ~clUIServer(). |
1.3.3