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


Field Documentation

client should not update this directly

Definition at line 121 of file ccn.h.

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


The documentation for this struct was generated from the following file:
Generated on Tue Aug 21 14:55:01 2012 for Content-Centric Networking in C by  doxygen 1.6.3