XrdNetCache Class Reference
#include <XrdNetCache.hh>
List of all members.
Constructor & Destructor Documentation
XrdNetCache::XrdNetCache |
( |
int |
psize = 987 , |
|
|
int |
csize = 1597 | |
|
) |
| | |
Constructor. When allocateing a new hash, two adjacent Fibonocci numbers. The series is simply n[j] = n[j-1] + n[j-2].
- Parameters:
-
| psize | the correct Fibonocci antecedent to csize. |
| csize | the initial size of the table. |
XrdNetCache::~XrdNetCache |
( |
|
) |
[inline] |
Destructor. The XrdNetCache object is not designed to be deleted. Doing so will cause memory to be lost.
Member Function Documentation
Add an address-hostname association to the cache. The address must be an INET family address; otherwise it is not added.
- Parameters:
-
| hAddr | points to the address of the name. |
| hName | points to the name to be associated with the address. |
void XrdNetCache::Expand |
( |
|
) |
[private] |
Locate an address-hostname association in the cache.
- Parameters:
-
| hAddr | points to the address of the name. |
- Returns:
- Success: an strdup'd string of the corresponding name. Failure: 0;
static void XrdNetCache::SetKT |
( |
int |
ktval |
) |
[inline, static] |
Set the default keep time for entries in the cache during initialization.
- Parameters:
-
| ktVal | the number of seconds to keep an entry in the cache. |
References keepTime.
Member Data Documentation
The documentation for this class was generated from the following file: