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

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 244 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 250 of file ccnd_private.h.

Referenced by process_incoming_content(), and remove_content().

skiplist for name-ordered ops

Definition at line 252 of file ccnd_private.h.

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


The documentation for this struct was generated from the following file:
Generated on Fri May 13 16:27:28 2011 for Content-Centric Networking in C by  doxygen 1.6.3