XrdSecPManager Class Reference

#include <XrdSecPManager.hh>

List of all members.

Public Member Functions

XrdSecPMask_t Find (const char *pid, char **parg=0)
XrdSecProtocolGet (const char *hname, const sockaddr &netaddr, const char *pname, XrdOucErrInfo *erp)
XrdSecProtocolGet (const char *hname, const struct sockaddr &netaddr, XrdSecParameters &secparm)
int Load (XrdOucErrInfo *eMsg, const char pmode, const char *pid, const char *parg, const char *path)
void setDebug (int dbg)
 XrdSecPManager (int dbg=0)
 ~XrdSecPManager ()

Private Member Functions

XrdSecProtListAdd (XrdOucErrInfo *eMsg, const char *pid, XrdSecProtocol *(*ep)(PROTPARMS), const char *parg)
XrdSecProtListldPO (XrdOucErrInfo *eMsg, const char pmode, const char *pid, const char *parg=0, const char *spath=0)
XrdSecProtListLookup (const char *pid)

Private Attributes

XrdSecPMask_t protnum
XrdSysMutex myMutex
XrdSecProtListFirst
XrdSecProtListLast
int DebugON


Detailed Description

Definition at line 29 of file XrdSecPManager.hh.


Constructor & Destructor Documentation

XrdSecPManager::XrdSecPManager ( int  dbg = 0  )  [inline]

Definition at line 54 of file XrdSecPManager.hh.

References DebugON, First, Last, and protnum.

XrdSecPManager::~XrdSecPManager (  )  [inline]

Definition at line 56 of file XrdSecPManager.hh.


Member Function Documentation

XrdSecPMask_t XrdSecPManager::Find ( const char *  pid,
char **  parg = 0 
)

Definition at line 76 of file XrdSecPManager.cc.

References Lookup(), XrdSecProtList::protargs, and XrdSecProtList::protnum.

Referenced by XrdSecServer::add2token(), XrdSecServer::getProtocol(), XrdSecServer::xpbind(), XrdSecServer::xpparm(), and XrdSecServer::xprot().

XrdSecProtocol * XrdSecPManager::Get ( const char *  hname,
const sockaddr &  netaddr,
const char *  pname,
XrdOucErrInfo erp 
)

Definition at line 91 of file XrdSecPManager.cc.

References DEBUG, XrdSecProtList::ep, EPROTONOSUPPORT, Lookup(), XrdSecProtList::protargs, and XrdOucErrInfo::setErrInfo().

Referenced by XrdSecServer::getProtocol(), and XrdSecGetProtocol().

XrdSecProtocol* XrdSecPManager::Get ( const char *  hname,
const struct sockaddr &  netaddr,
XrdSecParameters secparm 
)

int XrdSecPManager::Load ( XrdOucErrInfo eMsg,
const char  pmode,
const char *  pid,
const char *  parg,
const char *  path 
) [inline]

Definition at line 45 of file XrdSecPManager.hh.

References eMsg, and ldPO().

Referenced by XrdSecServer::ProtBind_Complete(), and XrdSecServer::xprot().

void XrdSecPManager::setDebug ( int  dbg  )  [inline]

Definition at line 52 of file XrdSecPManager.hh.

References DebugON.

Referenced by XrdSecServer::xtrace().

XrdSecProtList * XrdSecPManager::Add ( XrdOucErrInfo eMsg,
const char *  pid,
XrdSecProtocol *(*)(PROTPARMS)  ep,
const char *  parg 
) [private]

Definition at line 180 of file XrdSecPManager.cc.

References eMsg, XrdSecProtList::ep, First, Last, XrdSysMutex::Lock(), myMutex, XrdSecProtList::Next, protnum, XrdSecProtList::protnum, and XrdSysMutex::UnLock().

Referenced by ldPO().

XrdSecProtList * XrdSecPManager::ldPO ( XrdOucErrInfo eMsg,
const char  pmode,
const char *  pid,
const char *  parg = 0,
const char *  spath = 0 
) [private]

Definition at line 216 of file XrdSecPManager.cc.

References Add(), DEBUG, dlerror(), dlopen(), dlsym(), eMsg, INITPARMS, k, PROTPARMS, RTLD_NOW, ROOT::Math::detail::sep, snprintf, sprintf(), stat, and XrdSecProtocolhostObject().

Referenced by Load().

XrdSecProtList * XrdSecPManager::Lookup ( const char *  pid  )  [private]

Definition at line 307 of file XrdSecPManager.cc.

References First, XrdSysMutex::Lock(), myMutex, XrdSecProtList::Next, XrdSecProtList::protid, and XrdSysMutex::UnLock().

Referenced by Find(), and Get().


Member Data Documentation

XrdSecPMask_t XrdSecPManager::protnum [private]

Definition at line 69 of file XrdSecPManager.hh.

Referenced by Add(), and XrdSecPManager().

XrdSysMutex XrdSecPManager::myMutex [private]

Definition at line 70 of file XrdSecPManager.hh.

Referenced by Add(), and Lookup().

XrdSecProtList* XrdSecPManager::First [private]

Definition at line 71 of file XrdSecPManager.hh.

Referenced by Add(), Lookup(), and XrdSecPManager().

XrdSecProtList* XrdSecPManager::Last [private]

Definition at line 72 of file XrdSecPManager.hh.

Referenced by Add(), and XrdSecPManager().

int XrdSecPManager::DebugON [private]

Definition at line 73 of file XrdSecPManager.hh.

Referenced by setDebug(), and XrdSecPManager().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:43 2011 for ROOT_528-00b_version by  doxygen 1.5.1