ccn_closure Struct Reference

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


Detailed Description

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 116 of file ccn.h.


Field Documentation

client should not update this directly

Definition at line 120 of file ccn.h.

Referenced by ccn_replace_handler(), deliver_content(), imcoming_bulkdata(), and incoming_content().


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

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