Difference between revisions of "Libicnet"

From fd.io
Jump to: navigation, search
(Installation from binary packages)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
 
This library is designed to provide a transport layer for applications willing to communicate using an ICN protocol stack. It also provides some useful tools showing how to use the library.
 
This library is designed to provide a transport layer for applications willing to communicate using an ICN protocol stack. It also provides some useful tools showing how to use the library.
 +
 +
The library also provides testing applications such as producer-tests, ping-test and consumer-tests.
 +
 +
The iget application implements a simple HTTP request GET method to retrieve data
 +
from a corresponding web server which makes use of the producer socket.
 +
  
 
== Dependencies ==
 
== Dependencies ==
Line 19: Line 25:
 
           | sudo tee -a /etc/apt/sources.list.d/99fd.io.list
 
           | sudo tee -a /etc/apt/sources.list.d/99fd.io.list
 
  $ sudo apt-get update
 
  $ sudo apt-get update
  $ sudo apt-get install libicnet-dev
+
  $ sudo apt-get install libicnet
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 31: Line 37:
 
gpgcheck=0
 
gpgcheck=0
 
EOF
 
EOF
$ sudo yum install libicnet-devel
+
$ sudo yum install libicnet
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 16:47, 12 February 2018

ConsumerSocket/ProducerTransport API: data transport library for ICN

This library is designed to provide a transport layer for applications willing to communicate using an ICN protocol stack. It also provides some useful tools showing how to use the library.

The library also provides testing applications such as producer-tests, ping-test and consumer-tests.

The iget application implements a simple HTTP request GET method to retrieve data from a corresponding web server which makes use of the producer socket.


Dependencies

  • libboost-system-dev
  • libparc
  • libccnx-common
  • long-bow

Install the library

Installation from binary packages

Ubuntu 14.04 and Ubuntu 16.04

 $ echo "deb [trusted=yes] https://nexus.fd.io/content/repositories/fd.io.master.ubuntu.$(lsb_release -sc).main/ ./" \
          | sudo tee -a /etc/apt/sources.list.d/99fd.io.list
 $ sudo apt-get update
 $ sudo apt-get install libicnet

Centos 7

$ cat << EOF | sudo tee -a /etc/yum.repos.d/99fd.io.repo
[fdio-cicn-master]
name=fd.io master branch latest merge
baseurl=https://nexus.fd.io/content/repositories/fd.io.master.centos7/
enabled=1
gpgcheck=0
EOF
$ sudo yum install libicnet

Installation from source code

$ mkdir build && cd build
$ cmake ..
$ make
$ sudo make install

Platforms

Libicnet has been tested in:

- Ubuntu 16.04 (x86_64)
- Debian Testing
- MacOSX 10.12