Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Process Class Reference

List of all members.

Public Member Functions

int execConcurrentProcess (StartProcInfo *spi)
int execHiddenProcess (StartProcInfo *spi, u_long timeout=0xFFFFFFFF)
int isProcessAlive ()
 Process ()
int terminateProcess ()
 ~Process ()

Static Public Member Functions

void initialize ()
int setAdditionalGroups (u_long len, u_long *groups)
int setgid (u_long)
int setuid (u_long)

Private Attributes

int pid

Constructor & Destructor Documentation

Process::Process  ) 
 

Create the object.

Process::~Process  ) 
 

Destroy the object.


Member Function Documentation

int Process::execConcurrentProcess StartProcInfo spi  ) 
 

Start a process that runs simultaneously with the MyServer process. Return -1 on fails. Return the new process identifier on success.

int Process::execHiddenProcess StartProcInfo spi,
u_long  timeout = 0xFFFFFFFF
 

Execute an hidden process and wait until it ends itself or its execution time is greater than the timeout value. Return -1 on fails. Return 0 on success.

void Process::initialize  )  [static]
 

Initialize the static process data.

int Process::isProcessAlive  ) 
 

Return a nonzero value if the process is still alive. A return value of zero means the process is a zombie.

int Process::setAdditionalGroups u_long  len,
u_long *  groups
[static]
 

Set the additional groups list for the process.

int Process::setgid u_long  gid  )  [static]
 

Set the group identity for the process. Returns 0 on success.

int Process::setuid u_long  uid  )  [static]
 

Set the user identity for the process. Returns 0 on success.

int Process::terminateProcess  ) 
 

Terminate a process. Return 0 on success. Return nonzero on fails.


Member Data Documentation

int Process::pid [private]
 


Generated on Mon Jun 16 13:47:19 2008 for MyServer by  doxygen 1.3.9.1