Ben Noordhuis
eef57dddf4
core: use proper #include directives
13 years ago
Ben Noordhuis
27061cc9f4
udp_wrap, stream_wrap: lazy init slab allocator
Create slab allocator when binding is initialized.
Add an AtExit handler to destroy the slab before the VM shuts down, it can't be
disposed when V8 is dead and Valgrind will complain about memory leaks.
13 years ago
Fedor Indutny
af98fc9d5f
child_process: new stdio API for .spawn() method
13 years ago
Oleg Efimov
45de259b43
Make UNWRAP macro generic.
13 years ago
Ben Noordhuis
880219645e
tcp, udp: share sockaddr-to-object function
Share AddressToJS() function between tcp_wrap.cc and udp_wrap.cc.
13 years ago
Ben Noordhuis
b45a10818e
udp: slightly optimize address family property
13 years ago
Ben Noordhuis
e747daf604
udp: make variable names consistent
13 years ago
Shigeki Ohtsu
94f1feeb59
udp: make getsockname() return address family name
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
13 years ago
Ben Noordhuis
7c02b5a58d
udp_wrap: simplify AddressToJS() function
13 years ago
Ben Noordhuis
1ab95a536a
udp_wrap: use new slab allocator
13 years ago
Ben Noordhuis
f86359cc3f
udp: root JS objects in HandleScope with Local<>
13 years ago
Ben Noordhuis
32b2964eed
udp: remove slab allocator
13 years ago
ssuda
249c3c165a
Avoiding unnecessary ToString() calls
String::Utf8Value and String::AsciiValue constructors take Handle<Value>
So no need to convert to Handle<String>
13 years ago
Ben Noordhuis
ff4a9d381d
core: use proper #include directives
13 years ago
Ben Noordhuis
defa637378
dgram: fix out-of-bound memory read
13 years ago
Ben Noordhuis
74a8215a86
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
13 years ago
isaacs
b1b16d117e
udp: 'interface' is reserved word on windows.
13 years ago
Ben Noordhuis
2775c0e97e
dgram: bring back setTTL()
13 years ago
Ben Noordhuis
46e86aa803
dgram: bring back setMulticastLoopback()
13 years ago
Dan VerWeire
f2b1f57f74
dgram: reintroduce setMulticastTTL()
Removed during the early stages of node 0.5 refactoring to libuv.
13 years ago
Dan VerWeire
f749338e1e
dgram: reintroduce setBroadcast()
Removed during the early stages of node 0.5 refactoring to libuv.
13 years ago
Roman Shtylman
a38fd6056c
dgram: reintroduce addMembership() and dropMembership()
Removed during the early stages of node 0.5 refactoring to libuv.
13 years ago
mrb
bd9fa2e841
dgram: use slab memory allocator
Change udp memory allocation scheme from uv_buf_init to slab allocation. Takes
slab allocation scheme from stream_wrap.
13 years ago
Ben Noordhuis
3f5bb15f35
dgram: fix memory leak in error path
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Ryan Dahl
60818b957c
Add missing copyright headers
13 years ago
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
13 years ago
Bert Belder
c82ab45ee6
uv_getsockname got renamed
14 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
Ryan Dahl
06f750c466
fix windows build
14 years ago
Ben Noordhuis
11e3cfce8b
dgram: integrate libuv support for UDP over IPv6
14 years ago
Ben Noordhuis
cbd4033619
dgram: integrate libuv UDP support
14 years ago