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

ServerMain.C File Reference

#include <Basics.H>
#include <OS.H>
#include <VestaConfig.H>
#include <signal.h>
#include <sys/resource.h>
#include <LimService.H>
#include <SourceOrDerived.H>
#include "RunToolClient.H"
#include "RunToolDaemon.H"
#include "get_load.h"

Go to the source code of this file.

Functions

void init_repository_access ()
Text convert_failure (const SRPC::failure &f)
void RunToolServerFailure (SRPC *srpc, const SRPC::failure &f, void *arg)
void SigHandler (int sig)
int main (int argc, char *argv[])


Function Documentation

Text convert_failure const SRPC::failure f  ) 
 

Definition at line 87 of file ServerMain.C.

References SRPC::buffer_too_small, Text::chars(), SRPC::internal_trouble, SRPC::invalid_parameter, SRPC::failure::msg, SRPC::not_implemented, SRPC::partner_went_away, SRPC::protocol_violation, SRPC::failure::r, SRPC::transport_failure, SRPC::unknown_host, SRPC::unknown_interface, and SRPC::version_skew.

void init_repository_access  ) 
 

Definition at line 50 of file ServerMain.C.

References Basics::errno_Text(), SourceOrDerived::getMetadataRootLocalName(), SourceOrDerived::setMetadataRootLocalName(), and SYSERROR.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 159 of file ServerMain.C.

References convert_failure(), Basics::errno_Text(), init_repository_access(), VestaConfig::is_set(), NEW_CONSTR, LimService::Run(), RUN_TOOL_CONFIG_SECTION, RunToolServer(), RunToolServerCleanup(), RunToolServerFailure(), RunToolServerInit(), SigHandler(), and SRPC::transport_failure.

void RunToolServerFailure SRPC srpc,
const SRPC::failure f,
void *  arg
 

Definition at line 119 of file ServerMain.C.

References convert_failure(), SRPC::partner_went_away, and SRPC::failure::r.

Referenced by main().

void SigHandler int  sig  ) 
 

Definition at line 135 of file ServerMain.C.

References RunToolServerCleanup().


Generated on Mon May 8 00:49:05 2006 for Vesta by  doxygen 1.4.2