Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

broker_allup.cc File Reference


Detailed Description

Main file for an edu::utah::pces::Allup server.

Definition in file broker_allup.cc.

Include dependency graph for broker_allup.cc:

Include dependency graph

Go to the source code of this file.

Enumerations

enum  { BAB_DAEMON }
 Flag bit numbers for the executable as a whole. More...
enum  { BAF_DAEMON = (1L << BAB_DAEMON) }
 Flags bits derived from the bit numbers above.

Functions

void sig_exit_handler (int sig)
 Signal handler for SIGINT/SIGTERM.
void baUsage (const char *prog_name)
 Print out the usage statement to standard error.
int baProcessOptions (int &argc_inout, char **&argv_inout)
 Process the command line options.
int main (int argc, char *argv[])

Variables

struct {
   CORBA::ORB_var   ba_ORB
   unsigned long   ba_Flags
   const char *   ba_IORFileName
   const char *   ba_PIDFileName
ba_data
 Global data for the server.


Enumeration Type Documentation

anonymous enum
 

Flag bit numbers for the executable as a whole.

Enumeration values:
BAB_DAEMON  Fork into the background.

Definition at line 47 of file broker_allup.cc.


Function Documentation

int baProcessOptions int &  argc_inout,
char **&  argv_inout
[static]
 

Process the command line options.

Parameters:
argc_inout Reference to main's argc variable. On return, the variable will contain the number of arguments remaining after option processing.
argv_inout Reference to main's argv variable. On return, the variable will contain the remaining argument values.
Returns:
True if the options were processed correctly, false otherwise.

Definition at line 124 of file broker_allup.cc.

References ba_data.

void baUsage const char *  prog_name  )  [static]
 

Print out the usage statement to standard error.

Parameters:
prog_name The program name.

Definition at line 88 of file broker_allup.cc.

References ba_data, and require.

void sig_exit_handler int  sig  )  [static]
 

Signal handler for SIGINT/SIGTERM.

Parameters:
sig The actual signal number received.

Definition at line 78 of file broker_allup.cc.

References ba_data.


Variable Documentation

struct { ... } ba_data [static]
 

Global data for the server.

ba_ResourceSet - The resource set for this process.

Referenced by baProcessOptions(), baUsage(), and sig_exit_handler().


Generated on Fri Oct 22 07:50:28 2004 for CPU Broker by  doxygen 1.3.9.1