xrootd
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | Static Private Attributes

XrdProtLoad Class Reference

#include <XrdProtLoad.hh>

Inheritance diagram for XrdProtLoad:
Inheritance graph
[legend]
Collaboration diagram for XrdProtLoad:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void DoIt ()
XrdProtocolMatch (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 XrdProtocolgetProtocol (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 XrdProtocolProtocol [ProtoMax] = {0}
static int ProtPort [ProtoMax] = {0}
static XrdProtocolProtoWAN [ProtoMax] = {0}
static int ProtoCnt = 0
static int ProtWCnt = 0
static char * liblist [ProtoMax]
static XrdSysPluginlibhndl [ProtoMax]
static int libcnt = 0

Constructor & Destructor Documentation

XrdProtLoad::XrdProtLoad ( int  port = -1)

References myPort, and XrdMonCtrCollector::port.

XrdProtLoad::~XrdProtLoad ( )

Member Function Documentation

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]
int XrdProtLoad::Load ( const char *  lname,
const char *  pname,
char *  parms,
XrdProtocol_Config pi 
) [static]
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]
int XrdProtLoad::Process ( XrdLink lp) [virtual]
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().


Member Data Documentation

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]

Referenced by Load(), and Process().

int XrdProtLoad::ProtoCnt = 0 [static, private]

Referenced by Load(), and Process().

XrdProtocol * XrdProtLoad::Protocol = {0} [static, private]

Referenced by Load(), Process(), and Stats().

const int XrdProtLoad::ProtoMax = 8 [static]
XrdProtocol * XrdProtLoad::ProtoWAN = {0} [static, private]

Referenced by Load(), and Process().

int XrdProtLoad::ProtPort = {0} [static, private]

Referenced by Load(), and Process().

int XrdProtLoad::ProtWCnt = 0 [static, private]

Referenced by Load(), and Process().


The documentation for this class was generated from the following files: