WebSocket-NDNx proxy implemented in pure C++
This program requires Boost ASIO library and C++11 features. Older platforms and compilers may not be able to configure and/or compile.
The code is tested on Mac OS X Mavericks with default clang++ compiler and Boost library 1.55.0 and compiled on Ubuntu 13.10 with g++ 4.8.1 and Boost 1.53.0.
After cloning the Github repo, go to root folder and run the following two commands:
git submodule init
git submodule update
Then run the following two commands to compile:
./waf configure
./waf
If you need to specify the path of the boost library, you can use "--boost-libs" and "--boost-includes" options in waf. Example:
./waf configure --boost-libs=/usr/lib/x86_64-linux-gnu/
The compiled binary is in ./build folder:
./build/ws_proxy
-c [ndnd_addr]: specify the unix socket address for local ndnd. Default value is "/var/tmp/nfd.sock".
-m [max_clients]: specify the number of maximum concurrent clients. Default value is 50.
-p [proxy_port]: specify the port number for the proxy. Default value is 9696.