Browse Source

Change all copyright notices to refer to file COPYING

pull/1/head
Jeff Thompson 12 years ago
parent
commit
47eecfc6f9
  1. 11
      COPYING
  2. 4
      Makefile.in
  3. 43
      README.md
  4. 7
      ndn-cpp/Interest.cpp
  5. 7
      ndn-cpp/Interest.hpp
  6. 7
      ndn-cpp/Name.cpp
  7. 7
      ndn-cpp/Name.hpp
  8. 7
      ndn-cpp/c/Interest.h
  9. 7
      ndn-cpp/c/Name.h
  10. 7
      ndn-cpp/c/encoding/BinaryXML.h
  11. 7
      ndn-cpp/c/encoding/BinaryXMLDecoder.c
  12. 7
      ndn-cpp/c/encoding/BinaryXMLDecoder.h
  13. 7
      ndn-cpp/c/encoding/BinaryXMLEncoder.c
  14. 7
      ndn-cpp/c/encoding/BinaryXMLEncoder.h
  15. 7
      ndn-cpp/c/encoding/BinaryXMLInterest.c
  16. 7
      ndn-cpp/c/encoding/BinaryXMLInterest.h
  17. 7
      ndn-cpp/c/encoding/BinaryXMLName.c
  18. 7
      ndn-cpp/c/encoding/BinaryXMLName.h
  19. 7
      ndn-cpp/c/encoding/BinaryXMLStructureDecoder.c
  20. 7
      ndn-cpp/c/encoding/BinaryXMLStructureDecoder.h
  21. 7
      ndn-cpp/c/util/DynamicUCharArray.c
  22. 7
      ndn-cpp/c/util/DynamicUCharArray.h
  23. 7
      ndn-cpp/c/util/ndn_memory.c
  24. 7
      ndn-cpp/c/util/ndn_memory.h
  25. 13
      ndn-cpp/common.hpp
  26. 7
      ndn-cpp/encoding/BinaryXMLEncoder.hpp
  27. 7
      ndn-cpp/encoding/BinaryXMLStructureDecoder.hpp
  28. 7
      ndn-cpp/encoding/BinaryXMLWireFormat.cpp
  29. 8
      ndn-cpp/encoding/BinaryXMLWireFormat.hpp
  30. 7
      ndn-cpp/encoding/WireFormat.cpp
  31. 8
      ndn-cpp/encoding/WireFormat.hpp
  32. 22
      ndn-cpp/version.h
  33. 8
      test/test-encode-decode-interest.cpp

11
LICENSE → COPYING

@ -1,10 +1,8 @@
Copyright (c) 2013, Regents of the University of California
Copyright (c) 2013, Alexander Afanasyev
Copyright (c) 2013, Zhenkai Zhu
Copyright (c) 2012, Regents of the University of California
All rights reserved.
Written by: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
Zhenkai Zhu <zhenkai@cs.ucla.edu>
Authors of individual source files and components are listed in the
respective files.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@ -28,3 +26,4 @@ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

4
Makefile.in

@ -83,8 +83,8 @@ POST_UNINSTALL = :
DIST_COMMON = $(srcdir)/aminclude.am $(srcdir)/Makefile.in \
$(srcdir)/Makefile.am $(top_srcdir)/configure \
$(am__configure_deps) $(srcdir)/config.h.in \
$(dist_noinst_SCRIPTS) depcomp ar-lib compile config.guess \
config.sub install-sh missing ltmain.sh
$(dist_noinst_SCRIPTS) depcomp COPYING ar-lib compile \
config.guess config.sub install-sh missing ltmain.sh
bin_PROGRAMS = bin/test-encode-decode-interest$(EXEEXT)
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4

43
README.md

@ -1,43 +0,0 @@
NDN.cxx: C++ NDN API (using CCNx C Library)
===========================================
People often feel confusing and tedious when using CCNx C library, and this is an attempt to make it easier to program NDN applications using C++.
This API remotely resembles PyCCN API if you by any chance have already got yourself familiar with that.
The functions included are be roughly devided into two categories: NDN operations and async operations.
1. NDN Operations
------------------
This is a set of functions that provide relative easier ways to perform NDN operations, including manipulating NDN names, content objects, interests, sending interests, callbacks (closure) for content objects, name prefix discovery, signature verifications, etc.. There is also a blocking API to fetch content object.
2. Async Operations
-------------------
Communications in NDN is mostly async. There is an event thread running NDN and processing the NDN events (e.g. interests received, expired, content received, etc..). As such, you don't really want to do a lot of processing in the NDN event thread (which blocks processing of that events). Hence we provide a simple executor API, which allows you to process the events in separate threads. We also provide a scheduler which allows you to scheduler various events as you wish. The scheduler is based on libevent C API.
3. Build and Install
--------------------
To see more options, use `./waf configure --help`.
For default install, use
```bash
./waf configure
./waf
sudo ./waf install
```
### If you're using Mac OS X, Macport's g++ is not recommended. It may cause mysterious memory error with tinyxml. Use clang++ or Apple's g++ instead.
Normally, default install goes to /usr/local.
If you have added /usr/local/lib/pkgconfig to your `PKG_CONFIG_PATH`, then you can compile your code like this:
```bash
g++ code.cpp `pkg-config --cflags --libs libndn.cxx`
```
4. Examples
-----------
example/ directory contains a fully working example of simple client and server applications written using NDN.cxx API.
There is also an extensive usage of this library in [ChronoShare](https://github.com/named-data/ChronoShare).

7
ndn-cpp/Interest.cpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "Interest.hpp"

7
ndn-cpp/Interest.hpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_INTEREST_HPP

7
ndn-cpp/Name.cpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include <stdexcept>

7
ndn-cpp/Name.hpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_NAME_HPP

7
ndn-cpp/c/Interest.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_INTEREST_H

7
ndn-cpp/c/Name.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_NAME_H

7
ndn-cpp/c/encoding/BinaryXML.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXML_H

7
ndn-cpp/c/encoding/BinaryXMLDecoder.c

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "BinaryXML.h"

7
ndn-cpp/c/encoding/BinaryXMLDecoder.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXMLDECODER_H

7
ndn-cpp/c/encoding/BinaryXMLEncoder.c

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "../util/ndn_memory.h"

7
ndn-cpp/c/encoding/BinaryXMLEncoder.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXMLENCODER_H

7
ndn-cpp/c/encoding/BinaryXMLInterest.c

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "BinaryXMLEncoder.h"

7
ndn-cpp/c/encoding/BinaryXMLInterest.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXMLINTEREST_H

7
ndn-cpp/c/encoding/BinaryXMLName.c

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "BinaryXMLEncoder.h"

7
ndn-cpp/c/encoding/BinaryXMLName.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXMLNAME_H

7
ndn-cpp/c/encoding/BinaryXMLStructureDecoder.c

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "../util/ndn_memory.h"

7
ndn-cpp/c/encoding/BinaryXMLStructureDecoder.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXMLSTRUCTUREDECODER_H

7
ndn-cpp/c/util/DynamicUCharArray.c

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "DynamicUCharArray.h"

7
ndn-cpp/c/util/DynamicUCharArray.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_DYNAMICUCHARARRAY_H

7
ndn-cpp/c/util/ndn_memory.c

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include "ndn_memory.h"

7
ndn-cpp/c/util/ndn_memory.h

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
/*

13
ndn-cpp/common.hpp

@ -1,13 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2013, Regents of the University of California
* Alexander Afanasyev
* Zhenkai Zhu
*
* BSD license, See the LICENSE file for more information
*
* Author: Zhenkai Zhu <zhenkai@cs.ucla.edu>
* Alexander Afanasyev <alexander.afanasyev@ucla.edu>
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_COMMON_HPP

7
ndn-cpp/encoding/BinaryXMLEncoder.hpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXMLENCODER_HPP

7
ndn-cpp/encoding/BinaryXMLStructureDecoder.hpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef BINARYXMLSTRUCTUREDECODER_HPP

7
ndn-cpp/encoding/BinaryXMLWireFormat.cpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include <stdexcept>

8
ndn-cpp/encoding/BinaryXMLWireFormat.hpp

@ -1,10 +1,8 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_BINARYXMLWIREFORMAT_HPP
#define NDN_BINARYXMLWIREFORMAT_HPP

7
ndn-cpp/encoding/WireFormat.cpp

@ -1,7 +1,6 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include <stdexcept>

8
ndn-cpp/encoding/WireFormat.hpp

@ -1,10 +1,8 @@
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_WIREFORMAT_HPP
#define NDN_WIREFORMAT_HPP

22
ndn-cpp/version.h

@ -1,22 +0,0 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2013, Regents of the University of California
* Alexander Afanasyev
*
* BSD license, See the LICENSE file for more information
*
* Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
*/
#ifndef NDN_CXX_VERSION_H
#define NDN_CXX_VERSION_H
// NDN_CXX_VERSION % 100 is the minor version
// NDN_CXX_VERSION / 100 % 1000 is the major version
#define NDN_CXX_VERSION 0001
#define NDN_CXX_VERSION_MAJOR 0
#define NDN_CXX_VERSION_MINOR 1
#endif // NDN_CXX_VERSION_H

8
test/test-encode-decode-interest.cpp

@ -1,8 +1,6 @@
/*
* File: test-no-boost.cpp
* Author: jefft0
*
* Created on June 10, 2013, 4:21 PM
/**
* @author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
#include <cstdlib>

Loading…
Cancel
Save