content_entry Struct Reference

The content hash table is keyed by the initial portion of the ContentObject that contains all the parts of the complete name. More...


Data Fields

ccn_accession_t accession
 assigned in arrival order
unsigned short * comps
 Name Component byte boundary offsets.
int ncomps
 Number of name components plus one.
int flags
 see below
const unsigned char * key
 ccnb-encoded ContentObject
int key_size
 Size of fragment prior to Content.
int size
 Size of ContentObject.
struct ccn_indexbufskiplinks
 skiplist for name-ordered ops
ccnr_accession accession
 permanent repository id
ccnr_cookie cookie
 for in-memory references
struct ccn_charbufflatname
 for skiplist, et.
struct ccn_charbufcob
 may contain ContentObject, or be NULL


Detailed Description

The content hash table is keyed by the initial portion of the ContentObject that contains all the parts of the complete name.

The extdata of the hash table holds the rest of the object, so that the whole ContentObject is stored contiguously. The internal form differs from the on-wire form in that the final content-digest name component is represented explicitly, which simplifies the matching logic. The original ContentObject may be reconstructed simply by excising this last name component, which is easily located via the comps array.

Definition at line 245 of file ccnd_private.h.


Field Documentation

unsigned short* content_entry::comps

const unsigned char* content_entry::key

Size of fragment prior to Content.

Definition at line 251 of file ccnd_private.h.

Referenced by process_incoming_content(), and remove_content().

skiplist for name-ordered ops

Definition at line 253 of file ccnd_private.h.

Referenced by content_skiplist_findbefore(), content_skiplist_insert(), content_skiplist_next(), and content_skiplist_remove().

permanent repository id

Definition at line 71 of file ccnr_store.c.


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

Generated on Thu Feb 16 00:44:35 2012 for Content-Centric Networking in C by  doxygen 1.5.6