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_indexbuf * | skiplinks |
skiplist for name-ordered ops |
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.
assigned in arrival order
Definition at line 245 of file ccnd_private.h.
Referenced by content_from_accession(), content_skiplist_insert(), enroll_content(), face_send_queue_insert(), finalize_content(), mark_stale(), process_incoming_content(), process_incoming_interest(), and set_content_timer().
unsigned short* content_entry::comps |
Name Component byte boundary offsets.
Definition at line 246 of file ccnd_private.h.
Referenced by content_matches_interest_prefix(), content_skiplist_findbefore(), content_skiplist_insert(), content_skiplist_remove(), finalize_content(), match_interests(), next_child_at_level(), process_incoming_content(), and send_content().
see below
Definition at line 248 of file ccnd_private.h.
Referenced by clean_deamon(), face_send_queue_insert(), mark_stale(), process_incoming_content(), process_incoming_interest(), and remove_content().
const unsigned char* content_entry::key |
ccnb-encoded ContentObject
Definition at line 249 of file ccnd_private.h.
Referenced by consume_matching_interests(), content_matches_interest_prefix(), content_skiplist_findbefore(), content_skiplist_insert(), content_skiplist_remove(), face_send_queue_insert(), mark_stale(), match_interests(), next_child_at_level(), process_incoming_content(), process_incoming_interest(), remove_content(), send_content(), and set_content_timer().
Size of fragment prior to Content.
Definition at line 250 of file ccnd_private.h.
Referenced by process_incoming_content(), and remove_content().
Number of name components plus one.
Definition at line 247 of file ccnd_private.h.
Referenced by content_matches_interest_prefix(), content_skiplist_findbefore(), content_skiplist_insert(), content_skiplist_remove(), match_interests(), next_child_at_level(), process_incoming_content(), process_incoming_interest(), and send_content().
Size of ContentObject.
Definition at line 251 of file ccnd_private.h.
Referenced by consume_matching_interests(), content_sender(), face_send_queue_insert(), mark_stale(), next_child_at_level(), process_incoming_content(), process_incoming_interest(), remove_content(), and send_content().
struct ccn_indexbuf* content_entry::skiplinks |
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().