urn.cc File Reference
#include "squid.h"
#include "cbdata.h"
#include "errorpage.h"
#include "FwdState.h"
#include "globals.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "icmp/net_db.h"
#include "MemBuf.h"
#include "mime_header.h"
#include "RequestFlags.h"
#include "SquidTime.h"
#include "Store.h"
#include "StoreClient.h"
#include "tools.h"
#include "URL.h"
#include "urn.h"
Include dependency graph for urn.cc:

Go to the source code of this file.

Classes

class  UrnState
 
struct  url_entry
 

Macros

#define URN_REQBUF_SZ   4096
 

Functions

static url_entryurnParseReply (const char *inbuf, const HttpRequestMethod &)
 
static url_entryurnFindMinRtt (url_entry *urls, const HttpRequestMethod &, int *rtt_ret)
 
void urnStart (HttpRequest *r, StoreEntry *e)
 
static int url_entry_sort (const void *A, const void *B)
 
static void urnHandleReplyError (UrnState *urnState, StoreEntry *urlres_e)
 
static void urnHandleReply (void *data, StoreIOBuffer result)
 

Variables

static STCB urnHandleReply
 
static const char *const crlf = "\r\n"
 

Macro Definition Documentation

#define URN_REQBUF_SZ   4096

Definition at line 29 of file urn.cc.

Referenced by UrnState::created(), and urnHandleReply().

Function Documentation

static int url_entry_sort ( const void *  A,
const void *  B 
)
static

Definition at line 217 of file urn.cc.

References url_entry::rtt.

Referenced by urnHandleReply().

static url_entry* urnFindMinRtt ( url_entry urls,
const HttpRequestMethod ,
int rtt_ret 
)
static

Definition at line 81 of file urn.cc.

References assert, DBG_IMPORTANT, debugs, url_entry::host, i, NULL, url_entry::rtt, and url_entry::url.

Referenced by urnHandleReply().

static void urnHandleReplyError ( UrnState urnState,
StoreEntry urlres_e 
)
static

Definition at line 233 of file urn.cc.

References UrnState::entry, and StoreEntry::unlock().

Referenced by urnHandleReply().

static url_entry * urnParseReply ( const char *  inbuf,
const HttpRequestMethod m 
)
static
void urnStart ( HttpRequest r,
StoreEntry e 
)

Definition at line 210 of file urn.cc.

References UrnState::start().

Referenced by FwdState::Start().

Variable Documentation

const char* const crlf = "\r\n"
static

Definition at line 71 of file urn.cc.

Referenced by urnParseReply().

STCB urnHandleReply
static

Definition at line 69 of file urn.cc.

Referenced by UrnState::created(), and urnHandleReply().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors