libdap++ Updated for version 3.8.2

HTTPCacheTable.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 "util_mit.h"
#include "debug.h"
Include dependency graph for HTTPCacheTable.cc:

Go to the source code of this file.

Namespaces

namespace  libdap

Defines

#define CACHE_EMPTY_ETAG   "@cache@"
#define CACHE_INDEX   ".index"
#define CACHE_META   ".meta"
#define DIR_SEPARATOR_CHAR   '/'
#define DIR_SEPARATOR_STR   "/"
#define LM_EXPIRATION(t)   (min((MAX_LM_EXPIRATION), static_cast<int>((t) / 10)))
#define MAX_LM_EXPIRATION   48*3600
#define MKDIR(a, b)   mkdir((a), (b))
#define MKSTEMP(a)   mkstemp((a))
#define NO_LM_EXPIRATION   24*3600
#define REMOVE(a)   remove((a))

Functions

int libdap::get_hash (const string &url)

Variables

const int CACHE_TABLE_SIZE = 1499

Define Documentation

#define CACHE_EMPTY_ETAG   "@cache@"

Definition at line 76 of file HTTPCacheTable.cc.

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

#define CACHE_INDEX   ".index"

Definition at line 75 of file HTTPCacheTable.cc.

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

#define CACHE_META   ".meta"

Definition at line 74 of file HTTPCacheTable.cc.

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

#define DIR_SEPARATOR_CHAR   '/'

Definition at line 70 of file HTTPCacheTable.cc.

#define DIR_SEPARATOR_STR   "/"

Definition at line 71 of file HTTPCacheTable.cc.

#define LM_EXPIRATION (   t)    (min((MAX_LM_EXPIRATION), static_cast<int>((t) / 10)))

Definition at line 84 of file HTTPCacheTable.cc.

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

#define MAX_LM_EXPIRATION   48*3600

Definition at line 79 of file HTTPCacheTable.cc.

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

Definition at line 67 of file HTTPCacheTable.cc.

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

#define MKSTEMP (   a)    mkstemp((a))

Definition at line 69 of file HTTPCacheTable.cc.

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

#define NO_LM_EXPIRATION   24*3600

Definition at line 78 of file HTTPCacheTable.cc.

#define REMOVE (   a)    remove((a))

Variable Documentation