xrootd
|
#include <XrdProtLoad.hh>
Public Member Functions | |
void | DoIt () |
XrdProtocol * | Match (XrdLink *) |
int | Process (XrdLink *lp) |
void | Recycle (XrdLink *lp, int ctime, const char *txt) |
int | Stats (char *buff, int blen, int do_sync=0) |
XrdProtLoad (int port=-1) | |
~XrdProtLoad () | |
Static Public Member Functions | |
static int | Load (const char *lname, const char *pname, char *parms, XrdProtocol_Config *pi) |
static int | Port (const char *lname, const char *pname, char *parms, XrdProtocol_Config *pi) |
Static Public Attributes | |
static const int | ProtoMax = 8 |
Static Private Member Functions | |
static XrdProtocol * | getProtocol (const char *lname, const char *pname, char *parms, XrdProtocol_Config *pi) |
static int | getProtocolPort (const char *lname, const char *pname, char *parms, XrdProtocol_Config *pi) |
Private Attributes | |
int | myPort |
Static Private Attributes | |
static char * | ProtName [ProtoMax] = {0} |
static XrdProtocol * | Protocol [ProtoMax] = {0} |
static int | ProtPort [ProtoMax] = {0} |
static XrdProtocol * | ProtoWAN [ProtoMax] = {0} |
static int | ProtoCnt = 0 |
static int | ProtWCnt = 0 |
static char * | liblist [ProtoMax] |
static XrdSysPlugin * | libhndl [ProtoMax] |
static int | libcnt = 0 |
XrdProtLoad::XrdProtLoad | ( | int | port = -1 | ) |
References myPort, and XrdMonCtrCollector::port.
XrdProtLoad::~XrdProtLoad | ( | ) |
void XrdProtLoad::DoIt | ( | ) | [inline, virtual] |
Implements XrdJob.
XrdProtocol * XrdProtLoad::getProtocol | ( | const char * | lname, |
const char * | pname, | ||
char * | parms, | ||
XrdProtocol_Config * | pi | ||
) | [static, private] |
References XrdSysError::Emsg(), libcnt, libhndl, and liblist.
Referenced by Load().
int XrdProtLoad::getProtocolPort | ( | const char * | lname, |
const char * | pname, | ||
char * | parms, | ||
XrdProtocol_Config * | pi | ||
) | [static, private] |
References XrdSysError::Emsg(), libcnt, libhndl, liblist, XrdProtocol_Config::Port, and ProtoMax.
Referenced by Port().
int XrdProtLoad::Load | ( | const char * | lname, |
const char * | pname, | ||
char * | parms, | ||
XrdProtocol_Config * | pi | ||
) | [static] |
References XrdOucTrace::Beg(), XrdSysError::Emsg(), XrdOucTrace::End(), getProtocol(), XrdProtocol_Config::Port, XrdMonCtrCollector::port, ProtName, ProtoCnt, Protocol, ProtoMax, ProtoWAN, ProtPort, ProtWCnt, TRACE_DEBUG, TRACING, and XrdProtocol_Config::WANPort.
Referenced by XrdConfig::Setup().
XrdProtocol* XrdProtLoad::Match | ( | XrdLink * | ) | [inline, virtual] |
Implements XrdProtocol.
Referenced by Process().
int XrdProtLoad::Port | ( | const char * | lname, |
const char * | pname, | ||
char * | parms, | ||
XrdProtocol_Config * | pi | ||
) | [static] |
References XrdOucTrace::Beg(), XrdSysError::Emsg(), XrdOucTrace::End(), getProtocolPort(), XrdMonCtrCollector::port, TRACE_DEBUG, and TRACING.
Referenced by XrdConfig::Setup().
int XrdProtLoad::Process | ( | XrdLink * | lp | ) | [virtual] |
Implements XrdProtocol.
References XrdPoll::Attach(), XrdOucTrace::Beg(), XrdOucTrace::End(), XrdLink::isFlawed(), Match(), myPort, XrdProtocol::Process(), ProtName, ProtoCnt, Protocol, ProtoWAN, ProtPort, ProtWCnt, XrdLink::setEtext(), XrdLink::setProtocol(), TRACE_DEBUG, and TRACING.
void XrdProtLoad::Recycle | ( | XrdLink * | lp, |
int | ctime, | ||
const char * | txt | ||
) | [virtual] |
Implements XrdProtocol.
References XrdSysError::Emsg(), and XrdLink::ID.
int XrdProtLoad::Stats | ( | char * | buff, |
int | blen, | ||
int | do_sync = 0 |
||
) | [virtual] |
Implements XrdProtocol.
References Protocol, and XrdProtocol::Stats().
Referenced by XrdStats::Stats().
int XrdProtLoad::libcnt = 0 [static, private] |
Referenced by getProtocol(), and getProtocolPort().
XrdSysPlugin * XrdProtLoad::libhndl [static, private] |
Referenced by getProtocol(), and getProtocolPort().
char * XrdProtLoad::liblist [static, private] |
Referenced by getProtocol(), and getProtocolPort().
int XrdProtLoad::myPort [private] |
Referenced by Process(), and XrdProtLoad().
char * XrdProtLoad::ProtName = {0} [static, private] |
int XrdProtLoad::ProtoCnt = 0 [static, private] |
XrdProtocol * XrdProtLoad::Protocol = {0} [static, private] |
const int XrdProtLoad::ProtoMax = 8 [static] |
XrdProtocol * XrdProtLoad::ProtoWAN = {0} [static, private] |
int XrdProtLoad::ProtPort = {0} [static, private] |
int XrdProtLoad::ProtWCnt = 0 [static, private] |