Joshua Erickson
c9f2531ae0
net: More accurate IP address validation and IPv6 dotted notation.
* Added isIP method to make use of inet_pton to cares_wrap.cc
* Modified net.isIP() to make use of new C++ isIP method.
* Added new tests to test-net-isip.js.
This is a back-port of commit fb6377e
from the master branch.
12 years ago
Joshua Erickson
fb6377ebd0
net: More accurate IP address validation and IPv6 dotted notation.
* Added isIP method to make use of inet_pton to cares_wrap.cc
* Modified net.isIP() to make use of new C++ isIP method.
* Added new tests to test-net-isip.js.
12 years ago
Bert Belder
acea4c4123
dns: use uv_inet_ntop/uv_inet_pton instead of c-ares equivalents
13 years ago
Bert Belder
9e55ba7d6b
dns: don't rely on libuv for c-ares integration
13 years ago
Ben Noordhuis
eef57dddf4
core: use proper #include directives
13 years ago
isaacs
a90bc78534
Revert "DNS: Support NAPTR queries"
This reverts commit 91bf18fcc5
.
13 years ago
ssuda
91bf18fcc5
DNS: Support NAPTR queries
Adding support for NAPTR records
fixes #3170
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
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
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
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
Ryan Dahl
cced79d4a8
Move a few more global vars into struct
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Ryan Dahl
194511ff1a
Return IPv4 addresses before IPv6 addresses from getaddrinfo
13 years ago
Ryan Dahl
c83dda89a4
dns.lookup uses cares_wrap::GetAddrInfo
13 years ago
Bert Belder
00bbe958c4
Fix windows build
13 years ago
Ryan Dahl
be2320d408
Add binding to uv_getaddrinfo
13 years ago
Ben Noordhuis
f1d3ae7753
cares_wrap: make destructor virtual
A class with virtual methods should have a virtual destructor.
13 years ago
Christian Tellnes
d9c67aebff
dns: implement resolveTxt()
13 years ago
Ryan Dahl
12798c620d
dns callbacks should go through MakeCallback
13 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
Peter Bright
13d6a1f67f
Basic VC++ compatibility work.
14 years ago
Bert Belder
72e18d7f19
dns_uv: match the old api better, fix tests
14 years ago
Bert Belder
858f23094e
Bindings for libuv-integrated c-ares
14 years ago