Handle for upcalls that allow clients receive notifications of incoming interests and content. More...
Data Fields | |
ccn_handler | p |
client-supplied handler | |
void * | data |
for client use | |
intptr_t | intdata |
for client use | |
int | refcount |
client should not update this directly |
Handle for upcalls that allow clients receive notifications of incoming interests and content.
The client is responsible for managing this piece of memory and the data therein. The refcount should be initially zero, and is used by the library to keep to track of multiple registrations of the same closure. When the count drops back to 0, the closure will be called with kind = CCN_UPCALL_FINAL so that it has an opportunity to clean up.
Definition at line 109 of file ccn.h.
void* ccn_closure::data |
for client use
Definition at line 111 of file ccn.h.
Referenced by CallMe(), ccn_dump_names(), ccnd_answer_req(), ccnd_uri_listen(), get_my_data(), handle_prefix_reg_reply(), handle_simple_incoming_content(), imcoming_bulkdata(), incoming_content(), incoming_interest(), interest_handler(), main(), NeedSegment(), seqw_incoming_interest(), and split_my_excludes().
intptr_t ccn_closure::intdata |
for client use
Definition at line 112 of file ccn.h.
Referenced by ask_more(), ccnd_answer_req(), ccnd_uri_listen(), handle_simple_incoming_content(), incoming_content(), incoming_interest(), and main().
client-supplied handler
Definition at line 110 of file ccn.h.
Referenced by ccn_dump_names(), ccn_initiate_ccndid_fetch(), ccn_initiate_key_fetch(), ccn_replace_handler(), ccnd_uri_listen(), deliver_content(), fill_holes(), incoming_content(), main(), NeedSegment(), and split_my_excludes().
client should not update this directly
Definition at line 113 of file ccn.h.
Referenced by ccn_replace_handler(), deliver_content(), imcoming_bulkdata(), and incoming_content().