Split registerPrefix into registerPrefix and setInterestFilter

registerPrefix takes care only with registering prefix in NDN network
(currently, only on directly connected NDN hub) and setInterestFilter
only sets the callback (demultiplexer) for the incoming Interests on the
face.

This issue also includes two more "major" changes:
- updated onInterest callback. Now the prototype is (face, filter,
  interest)
- new Face.put method to "publish" Data packet on the face.

Change-Id: Id09fe715c74b3cb69655d0ec05884a24336fafbf
2 files changed
tree: d97d0ad42d52363e1265ed0e5cc09136e60494e8
  1. details/
  2. named_data_theme/
  3. .gitignore
  4. blob.rst
  5. conf.py
  6. data.rst
  7. face.rst
  8. index.rst
  9. interest.rst
  10. key-chain.rst
  11. Makefile
  12. name-component.rst
  13. name.rst
  14. README.md
  15. signature.rst
  16. transport.rst
README.md

Prerequisites

To "compile" documentation into html form you would need to install Sphinx documentation package, which should be relatively trivial.

If you're on OSX platform:

If you're on Ubuntu Linux:

sudo apt-get install python-sphinx

Compilation

Just type

make html

And a set of HTML pages will be build under _build/html

You can also type

make latexpdf

This way Sphinx will prepare .tex file and will try to build .pdf document.