ROOT  6.06/08
Reference Guide
Functions | Variables
proofd.cxx File Reference
#include "RConfigure.h"
#include "RConfig.h"
#include <ctype.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <string>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <sys/un.h>
#include "snprintf.h"
#include "proofdp.h"
#include "rsadef.h"
#include "rsalib.h"
+ Include dependency graph for proofd.cxx:

Go to the source code of this file.

Functions

void Err (int level, const char *msg, int size)
 
void ErrFatal (int level, const char *msg, int size)
 
void ErrSys (int level, const char *msg, int size)
 
static void ProofdTerm (int)
 Termination upon receipt of a SIGTERM or SIGINT. More...
 
const char * RerouteUser ()
 Look if user should be rerouted to another server node. More...
 
int RpdProofGetAuthSetup (char **abuf)
 Receive buffer for final setup of authentication related stuff This is base 64 string to decoded by proofserv, if needed. More...
 
void ProofdExec ()
 Authenticate the user and exec the proofserv program. More...
 
void Usage (const char *name, int rc)
 
int main (int argc, char **argv)
 

Variables

int gDebug = 0
 
const int kMaxSlaves = 32
 
static std::string gAuthrc
 
static std::string gConfDir
 
static std::string gOpenHost
 
static std::string gRootBinDir
 
static std::string gRpdAuthTab
 
static std::string gTmpDir
 
static std::string gUser
 
static EService gService = kPROOFD
 
static int gProtocol = 14
 
static int gRemPid = -1
 
static std::string gReadHomeAuthrc = "0"
 
static int gInetdFlag = 0
 
static int gMaster =-1
 
static int gRequireAuth = 1
 

Function Documentation

§ Err()

void Err ( int  level,
const char *  msg,
int  size 
)

Definition at line 251 of file proofd.cxx.

Referenced by main().

§ ErrFatal()

void ErrFatal ( int  level,
const char *  msg,
int  size 
)

Definition at line 258 of file proofd.cxx.

Referenced by ErrSys(), and main().

§ ErrSys()

void ErrSys ( int  level,
const char *  msg,
int  size 
)

Definition at line 266 of file proofd.cxx.

Referenced by main().

§ main()

int main ( int  argc,
char **  argv 
)

Definition at line 790 of file proofd.cxx.

§ ProofdExec()

void ProofdExec ( )

Authenticate the user and exec the proofserv program.

gConfdir is the location where the PROOF config files and binaries live.

Definition at line 457 of file proofd.cxx.

Referenced by main().

§ ProofdTerm()

static void ProofdTerm ( int  )
static

Termination upon receipt of a SIGTERM or SIGINT.

Definition at line 292 of file proofd.cxx.

Referenced by ErrSys(), and main().

§ RerouteUser()

const char* RerouteUser ( )

Look if user should be rerouted to another server node.

Definition at line 307 of file proofd.cxx.

Referenced by ProofdExec().

§ RpdProofGetAuthSetup()

int RpdProofGetAuthSetup ( char **  abuf)

Receive buffer for final setup of authentication related stuff This is base 64 string to decoded by proofserv, if needed.

Definition at line 417 of file proofd.cxx.

Referenced by ProofdExec().

§ Usage()

void Usage ( const char *  name,
int  rc 
)

Definition at line 757 of file proofd.cxx.

Referenced by main().

Variable Documentation

§ gAuthrc

std::string gAuthrc
static

Definition at line 230 of file proofd.cxx.

Referenced by main(), and ProofdExec().

§ gConfDir

std::string gConfDir
static

Definition at line 231 of file proofd.cxx.

Referenced by main(), ProofdExec(), and RerouteUser().

§ gDebug

int gDebug = 0

Definition at line 224 of file proofd.cxx.

Referenced by main(), ProofdExec(), and RpdProofGetAuthSetup().

§ gInetdFlag

int gInetdFlag = 0
static

Definition at line 241 of file proofd.cxx.

Referenced by main().

§ gMaster

int gMaster =-1
static

Definition at line 242 of file proofd.cxx.

Referenced by main(), and ProofdExec().

§ gOpenHost

std::string gOpenHost
static

Definition at line 232 of file proofd.cxx.

Referenced by ProofdExec().

§ gProtocol

int gProtocol = 14
static

Definition at line 238 of file proofd.cxx.

Referenced by main().

§ gReadHomeAuthrc

std::string gReadHomeAuthrc = "0"
static

Definition at line 240 of file proofd.cxx.

Referenced by main(), and ProofdExec().

§ gRemPid

int gRemPid = -1
static

Definition at line 239 of file proofd.cxx.

Referenced by main(), and ProofdExec().

§ gRequireAuth

int gRequireAuth = 1
static

Definition at line 243 of file proofd.cxx.

Referenced by main(), and ProofdExec().

§ gRootBinDir

std::string gRootBinDir
static

Definition at line 233 of file proofd.cxx.

Referenced by main(), and ProofdExec().

§ gRpdAuthTab

std::string gRpdAuthTab
static

Definition at line 234 of file proofd.cxx.

§ gService

EService gService = kPROOFD
static

Definition at line 237 of file proofd.cxx.

Referenced by main().

§ gTmpDir

std::string gTmpDir
static

Definition at line 235 of file proofd.cxx.

Referenced by main(), and ProofdExec().

§ gUser

std::string gUser
static

Definition at line 236 of file proofd.cxx.

Referenced by main(), ProofdExec(), and RerouteUser().

§ kMaxSlaves

const int kMaxSlaves = 32

Definition at line 228 of file proofd.cxx.

Referenced by RerouteUser().