Logo ROOT   6.08/07
Reference Guide
Namespaces | Typedefs | Functions | Variables
DaemonUtils.h File Reference
#include <string>
#include "TSocket.h"
#include "TSeqCollection.h"
#include "NetErrors.h"
#include "rpddefs.h"
Include dependency graph for DaemonUtils.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 ROOT
 This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecutor::MapReduce.
 

Typedefs

typedef void(* ErrorHandler_t) (int level, const char *msg, int size)
 

Functions

void ROOT::Error (ErrorHandler_t ErrHand, int code, const char *fmt,...)
 
void ROOT::ErrorInfo (const char *fmt,...)
 
void ROOT::ErrorInit (const char *ident)
 
int ROOT::GetErrno ()
 return errno More...
 
void ROOT::NetClose ()
 Empty call, for consistency. More...
 
void ROOT::NetGetRemoteHost (std::string &openhost)
 Return name of connected host. More...
 
int ROOT::NetGetSockFd ()
 return open socket descriptor More...
 
int ROOT::NetParOpen (int port, int size)
 Empty call, for consistency. More...
 
int ROOT::NetRecv (char *msg, int max)
 Receive a string of maximum length max. More...
 
int ROOT::NetRecv (char *msg, int len, EMessageTypes &kind)
 Receive a string of maximum len length. More...
 
int ROOT::NetRecv (void *&buf, int &len, EMessageTypes &kind)
 Receive a buffer. More...
 
int ROOT::NetRecvRaw (void *buf, int len)
 Receive a buffer of maximum len bytes. More...
 
int ROOT::NetRecvRaw (int sock, void *buf, int len)
 Receive a buffer of maximum len bytes from generic socket sock. More...
 
int ROOT::NetSend (int code, EMessageTypes kind)
 Send integer. Message will be of type "kind". More...
 
int ROOT::NetSend (const char *msg, EMessageTypes kind)
 Send a string. Message will be of type "kind". More...
 
int ROOT::NetSend (const void *buf, int len, EMessageTypes kind)
 Send buffer of len bytes. Message will be of type "kind". More...
 
int ROOT::NetSendAck ()
 Send acknowledge code. More...
 
int ROOT::NetSendError (ERootdErrors err)
 Send error code. More...
 
int ROOT::NetSendRaw (const void *buf, int len)
 Send buffer of len bytes. More...
 
void ROOT::Perror (char *buf, int size)
 Return in buf the message belonging to errno. More...
 
void ROOT::ResetErrno ()
 reset errno More...
 
void ROOT::RpdAuthCleanup (const char *sstr, int opt)
 
int ROOT::RpdCleanupAuthTab (const char *crypttoken)
 
int ROOT::RpdGenRSAKeys (int)
 
void ROOT::RpdInit (EService serv, int pid, int sproto, unsigned int opts, int rumsk, int sshp, const char *tmpd, const char *asrpp, int login=0)
 
int ROOT::RpdInitSession (int, std::string &, int &, int &, int &, std::string &)
 
void ROOT::RpdSetErrorHandler (ErrorHandler_t Err, ErrorHandler_t Sys, ErrorHandler_t Fatal)
 
void ROOT::RpdSetMethInitFlag (int methinit)
 
Int_t SrvAuthImpl (TSocket *socket, const char *, const char *, std::string &user, Int_t &meth, Int_t &type, std::string &ctoken, TSeqCollection *)
 Server authentication code. More...
 
Int_t SrvClupImpl (TSeqCollection *)
 Wrapper to cleanup code. More...
 
void ROOT::SrvSetSocket (TSocket *Socket)
 Fill socket parameters. More...
 

Variables

ErrorHandler_t ROOT::gErr
 
ErrorHandler_t ROOT::gErrFatal
 
ErrorHandler_t ROOT::gErrSys
 

Typedef Documentation

◆ ErrorHandler_t

typedef void(* ErrorHandler_t) (int level, const char *msg, int size)

Definition at line 46 of file DaemonUtils.h.

Function Documentation

◆ SrvAuthImpl()

Int_t SrvAuthImpl ( TSocket socket,
const char *  confdir,
const char *  tmpdir,
string &  user,
Int_t meth,
Int_t type,
string &  ctoken,
TSeqCollection secctxlist 
)

Server authentication code.

Returns 0 in case authentication failed 1 in case of success On success, returns authenticated username in user

Definition at line 222 of file DaemonUtils.cxx.

◆ SrvClupImpl()

Int_t SrvClupImpl ( TSeqCollection )

Wrapper to cleanup code.

Definition at line 201 of file DaemonUtils.cxx.