HTTPCache.cc File Reference

#include "config.h"
#include <pthread.h>
#include <limits.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <cstring>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <iterator>
#include <set>
#include "Error.h"
#include "InternalErr.h"
#include "ResponseTooBigErr.h"
#include "SignalHandler.h"
#include "HTTPCacheInterruptHandler.h"
#include "HTTPCacheTable.h"
#include "HTTPCache.h"
#include "util_mit.h"
#include "debug.h"

Include dependency graph for HTTPCache.cc:

Go to the source code of this file.


Namespaces

namespace  libdap
 The Byte constructor.

Defines

#define CACHE_FOLDER_PCT   10
#define CACHE_GC_PCT   10
#define CACHE_INDEX   ".index"
#define CACHE_LOC   "/tmp/"
#define CACHE_LOCK   ".lock"
#define CACHE_META   ".meta"
#define CACHE_ROOT   "dods-cache/"
#define CACHE_TOTAL_SIZE   20
#define DIR_SEPARATOR_CHAR   '/'
#define DIR_SEPARATOR_STR   "/"
#define DUMP_FREQUENCY   10
#define MAX_CACHE_ENTRY_SIZE   3
#define MEGA   0x100000L
#define MIN_CACHE_TOTAL_SIZE   5
#define MKDIR(a, b)   mkdir((a), (b))
#define MKSTEMP(a)   mkstemp((a))
#define NO_LM_EXPIRATION   24*3600
#define REMOVE(a)   remove((a))

Functions

bool libdap::is_hop_by_hop_header (const string &header)


Define Documentation

#define CACHE_FOLDER_PCT   10

Definition at line 105 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::set_max_size().

#define CACHE_GC_PCT   10

Definition at line 106 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::set_max_size().

#define CACHE_INDEX   ".index"

Definition at line 94 of file HTTPCache.cc.

#define CACHE_LOC   "/tmp/"

Definition at line 91 of file HTTPCache.cc.

#define CACHE_LOCK   ".lock"

Definition at line 95 of file HTTPCache.cc.

#define CACHE_META   ".meta"

Definition at line 96 of file HTTPCache.cc.

Referenced by libdap::HTTPCacheTable::remove_cache_entry().

#define CACHE_ROOT   "dods-cache/"

Definition at line 92 of file HTTPCache.cc.

#define CACHE_TOTAL_SIZE   20

Definition at line 104 of file HTTPCache.cc.

#define DIR_SEPARATOR_CHAR   '/'

Definition at line 83 of file HTTPCache.cc.

#define DIR_SEPARATOR_STR   "/"

Definition at line 84 of file HTTPCache.cc.

#define DUMP_FREQUENCY   10

Definition at line 101 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::cache_response().

#define MAX_CACHE_ENTRY_SIZE   3

Definition at line 108 of file HTTPCache.cc.

#define MEGA   0x100000L

#define MIN_CACHE_TOTAL_SIZE   5

Definition at line 107 of file HTTPCache.cc.

Referenced by libdap::HTTPCache::set_max_size().

#define MKDIR ( a,
 )     mkdir((a), (b))

Definition at line 80 of file HTTPCache.cc.

Referenced by libdap::HTTPCacheTable::create_hash_directory().

#define MKSTEMP (  )     mkstemp((a))

Definition at line 82 of file HTTPCache.cc.

Referenced by libdap::HTTPCacheTable::create_location().

#define NO_LM_EXPIRATION   24*3600

Definition at line 99 of file HTTPCache.cc.

#define REMOVE (  )     remove((a))


Generated on Wed Apr 22 19:53:41 2009 for libdap++ by  doxygen 1.5.8