Node.js JavaScript runtime 🐢🚀
 
 
 
 
 
 
Go to file
Ben Noordhuis 6bd922fce8 dgram: report send errors to cb, don't pass bytes
Passing the number of sent bytes to the callback is superfluous;
datagram sockets operate in atomic mode: either the sendmsg() system
call succeeds or it fails but it never does partial writes.

Instead, report send errors to the callback. UDP error reporting is
fairly haphazard on most platforms. You should not expect reliable
delivery of anything besides EMSGSIZE and (possibly) ENETDOWN and
ENETUNREACH.

Fixes #2608.
2013-07-29 06:48:46 +02:00
benchmark bench: fix up benchmarks after internal api change 2013-07-20 12:13:54 +02:00
deps v8: upgrade to v8 3.20.9 2013-07-29 21:21:03 +02:00
doc dgram: report send errors to cb, don't pass bytes 2013-07-29 06:48:46 +02:00
lib dgram: report send errors to cb, don't pass bytes 2013-07-29 06:48:46 +02:00
src dgram: report send errors to cb, don't pass bytes 2013-07-29 06:48:46 +02:00
test dgram: report send errors to cb, don't pass bytes 2013-07-29 06:48:46 +02:00
tools tools: fix js2c macro expansion bug 2013-07-24 21:49:34 +02:00
.gitattributes Explicitly disable cr/lf conversion for test fixtures 2011-08-10 19:59:37 +02:00
.gitignore tools: Add wrk for benchmarking http servers 2013-02-19 17:16:18 -08:00
.mailmap Update .mailmap and AUTHORS 2013-03-19 20:07:38 +01:00
AUTHORS 2013.07.12, Version 0.11.4 (Unstable) 2013-07-12 13:51:04 -07:00
BSDmakefile Tell BSD users to run `gmake` instead. 2011-07-11 14:17:23 +02:00
CONTRIBUTING.md doc: clarify subsystems in CONTRIBUTING.md 2013-05-14 12:31:38 +02:00
ChangeLog 2013.07.12, Version 0.11.4 (Unstable) 2013-07-12 13:51:04 -07:00
LICENSE src: replace ngx-queue.h with queue.h 2013-06-04 12:22:03 +02:00
Makefile src: update v8 build requirements 2013-07-22 15:53:43 -07:00
README.md doc: the build requires gcc 4.2 or newer 2013-05-22 13:47:29 +02:00
android-configure build: add android support 2013-06-17 17:21:56 +02:00
common.gypi build: don't enable --gc-sections on sunos 2013-07-06 18:49:02 +02:00
configure build: remove --unsafe-optimizations flag 2013-07-06 16:53:07 +02:00
node.gyp src: don't use NewExternal() with unaligned strings 2013-07-29 05:11:00 +02:00
vcbuild.bat build: vcbuild.bat fix for Visual Studio 2012 2013-05-03 11:32:32 +02:00

README.md

Evented I/O for V8 javascript. Build Status

To build:

Prerequisites (Unix only):

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

Unix/Macintosh:

./configure
make
make install

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