ROOT
6.06/09
Reference Guide
|
#include <string>
#include "TSocket.h"
#include "TSeqCollection.h"
#include "NetErrors.h"
#include "rpddefs.h"
Go to the source code of this file.
Namespaces | |
ROOT | |
Namespace for new ROOT classes and functions. | |
Typedefs | |
typedef void(* | ErrorHandler_t) (int level, const char *msg, int size) |
Functions | |
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... | |
int | ROOT::GetErrno () |
return errno More... | |
void | ROOT::ResetErrno () |
reset errno More... | |
void | ROOT::ErrorInit (const char *ident) |
void | ROOT::ErrorInfo (const char *fmt,...) |
void | ROOT::Perror (char *buf, int size) |
Return in buf the message belonging to errno. More... | |
void | ROOT::Error (ErrorHandler_t ErrHand, int code, const char *fmt,...) |
void | ROOT::RpdAuthCleanup (const char *sstr, int opt) |
int | ROOT::RpdCleanupAuthTab (const char *crypttoken) |
int | ROOT::RpdGenRSAKeys (int) |
void | ROOT::RpdSetErrorHandler (ErrorHandler_t Err, ErrorHandler_t Sys, ErrorHandler_t Fatal) |
void | ROOT::RpdSetMethInitFlag (int methinit) |
int | ROOT::RpdInitSession (int, std::string &, int &, int &, int &, std::string &) |
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) |
void | ROOT::SrvSetSocket (TSocket *Socket) |
Fill socket parameters. More... | |
void | ROOT::NetClose () |
Empty call, for consistency. 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::NetGetRemoteHost (std::string &openhost) |
Return name of connected host. More... | |
int | ROOT::NetGetSockFd () |
return open socket descriptor More... | |
Variables | |
ErrorHandler_t | ROOT::gErrSys |
ErrorHandler_t | ROOT::gErrFatal |
ErrorHandler_t | ROOT::gErr |
typedef void(* ErrorHandler_t) (int level, const char *msg, int size) |
Definition at line 46 of file DaemonUtils.h.
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.
Referenced by SrvAuthenticate().
Int_t SrvClupImpl | ( | TSeqCollection * | ) |
Wrapper to cleanup code.
Definition at line 201 of file DaemonUtils.cxx.
Referenced by SrvAuthCleanup().