org.ccnx.ccn.impl.CCNNetworkManager.RegisteredPrefix Class Reference

Keep track of prefixes that are actually registered with ccnd (as opposed to Filters used to dispatch interests). More...

Inheritance diagram for org.ccnx.ccn.impl.CCNNetworkManager.RegisteredPrefix:

org.ccnx.ccn.CCNContentHandler

List of all members.

Public Member Functions

 RegisteredPrefix (ForwardingEntry forwarding)
Interest handleContent (ContentObject data, Interest interest)
 Catch results of prefix deregistration.

Protected Attributes

long _nextRefresh = -1


Detailed Description

Keep track of prefixes that are actually registered with ccnd (as opposed to Filters used to dispatch interests).

There may be several filters for each registered prefix.


Member Function Documentation

Interest org.ccnx.ccn.impl.CCNNetworkManager.RegisteredPrefix.handleContent ( ContentObject  data,
Interest  interest 
)

Catch results of prefix deregistration.

We can then unlock registration to allow new registrations or deregistrations. Note that we wait for prefix registration to complete during the setInterestFilter call but we don't wait for deregistration to complete during cancelInterestFilter. This is because we need to insure that we see interests for our prefix after a registration, but we don't need to worry about spurious interests arriving after a deregistration because they can't be delivered anyway. However to insure registrations are done correctly, we must wait for a pending deregistration to complete before starting another registration or deregistration.

Implements org.ccnx.ccn.CCNContentHandler.


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

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