0.0.22 • Published 11 years ago

ndn-on-node v0.0.22

Weekly downloads
90
License
-
Repository
github
Last release
11 years ago

NDN on Node

NDN on Node (NoN) is an NDN library running on Node.js. The usage is quite different from the original browser-based NDN.JS library but more similar to PyCCN in that it is used to implement standalone NDN applications. It features a pure JavaScript implementation with no dependency on CCNx C library (which is true for PyCCN and ndn.cxx C++ library).

Major changes from NDN.JS:

  • Use TCP rather than WebSocket to connect to local ccnd
  • Use Node.js Buffer object rather than JavaScript ArrayBuffer to hold NDN packets in memory
  • Implement key management interfaces, such as load key from PEM files
  • Use callback-based rather than closure-based NDN event model
  • Significant code cleanup and refactoring

Usage

To use this library, put ./build/ndn.js in your project folder and 'require' that file in your code.

For example:

var NDN = require('./ndn.js').NDN;
var ndn = new NDN();
ndn.connect();

More sample codes can be found in ./sample folder.

Build

To build the 'ndn.js' lib file, simply run the script 'make.sh' in ./build folder.

0.0.22

11 years ago

0.0.21

11 years ago

0.0.20

11 years ago

0.0.19

11 years ago

0.0.18

11 years ago

0.0.17

11 years ago

0.0.16

11 years ago

0.0.15

11 years ago

0.0.14

11 years ago

0.0.13

11 years ago

0.0.12

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago