JavaScript C++ Python C DTrace Makefile Other
Pull request Compare This branch is 7444 commits ahead, 1 commit behind nodejs:moved.
Latest commit 274b353 Feb 6, 2017 Ubuntu fixed udt test case
Permalink
Failed to load latest commit information.
benchmark benchmark: Port http.sh from master Jan 25, 2013
deps fixed udt test case Feb 6, 2017
doc merge DNS set/get server API Jul 30, 2014
lib merge dns get/set server with nodejs@8886c6b Jul 30, 2014
src support build for android Aug 15, 2014
test fixed rdtsc.c Feb 5, 2017
tools build: run wix tool chain out of process Jul 31, 2014
.gitattributes Explicitly disable cr/lf conversion for test fixtures Aug 10, 2011
.gitignore gitignore: ignore .svn directories Jul 7, 2012
.mailmap Add a .mailmap file, and clean up AUTHORS somewhat Jul 9, 2012
.travis.yml test: add `.travis.yml` for testing on Travis CI Dec 6, 2011
AUTHORS 2014.06.09, Version 0.8.27 (maintenance) Jun 9, 2014
BSDmakefile Tell BSD users to run `gmake` instead. Jul 11, 2011
CONTRIBUTING.md doc: add tools/ dir to CONTRIBUTING.md verboten list Feb 14, 2013
ChangeLog 2014.07.31, Version 0.8.28 (maintenance) Jul 31, 2014
LICENSE Update npm's license Jun 19, 2012
Makefile build: support individual signing keys Jun 9, 2014
README.md fixed android build typo Aug 16, 2014
android-configure support build for android Aug 15, 2014
common.gypi fixed IA32/X64 arch flag for macos/windows Feb 5, 2017
configure support build for android Aug 15, 2014
cross-compile-pi.sh code cleanup on udt,udts,httpp,httpps module May 10, 2014
example.js added https, httpps in example.js Oct 13, 2012
node.gyp reback target_name to node Apr 5, 2013
vcbuild.bat vcbuild.bat: add duplicate arg-ok label to work around cmd.exe bug Jun 13, 2012

README.md

node-httpp

HTTPP - Run HTTP over UDP and Bring Web in Peer or P2P styles.

It consists of four modules: udt.js, httpp.js, udts.js, httpps.js, that keeps the same api like net.js/http.js/tls.js/https.js.

It's simple to use node-httpp: 1. replace net with udt, http with httpp, tls with udts, https with httpps when require net/http/tls/httpps modules. 2. do the rest as http.

To build it manually, clone the repository and checkout v0.8-httpp branch firstly, then do steps as below.

discussion group: https://groups.google.com/d/forum/iwebpp

Wiki page: https://github.com/InstantWebP2P/node-httpp/wiki/An-introduction-to-node-httpp

Features

  • Run http and https over udp, taking udp high data transfer performance
  • Configurable Congestion Control
  • Per-socket network performance monitor
  • Per-socket bandwidth limitation
  • Multiplex connections on single udp port, saving system resources
  • Extend client/central server style web service transparently
  • Easy to use API, reuse existing http/web and node.js technology
  • Support windows/linux/OSx, RaspberryPi, Android

TODO

  • Support iOS, WP8
  • Make node-httpp as Node.js module instead of fork
  • Add more test cases
  • Improve documents, RFC draft

third-party source

Evented I/O for V8 javascript. Build Status

To checkout the sourcecode:

git clone https://github.com/InstantWebP2P/node-httpp.git
git checkout v0.8-httpp

To build:

Prerequisites (Unix only):

* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

Unix/Macintosh:

./configure
make
make install

Cross compile for Raspberry Pi:

setup toolchain env first, then
source cross-compile-pi.sh

Cross compile for Android:

setup Android NDK env first, then
source android-configure NDK_PATH
make -C out  

If your python binary is in a non-standard location or has a non-standard name, run the following instead:

export PYTHON=/path/to/python
$PYTHON ./configure
make
make install

Windows:

vcbuild.bat

To run the tests:

Unix/Macintosh:

make test

Windows:

vcbuild.bat test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers