Bert Belder
1361e87e80
Fix error reporting and EAGAIN handling bug in net Write
Clarify some comments as well
14 years ago
Bert Belder
03a74efb16
Don't break the linux build
14 years ago
Bert Belder
8b9f7c6eb2
Make Read and Write in node_net.cc actually work on sockets
14 years ago
Bert Belder
13fb6f7fa1
Make Socket, Bind, Listen, Accept work for windows
14 years ago
Bert Belder
51300f36d6
Make SetNonBlock and SetSockFlags work on FDs instead of sockets
However, don't use _get_osfhandle in Close()
14 years ago
Bert Belder
6e522fb27b
Use the c-ares pton/ntop hack in node_net.cc as well
14 years ago
Bert Belder
3947269f97
Mingw32 has no inet_pton/inet_ntop; import them from c-ares (hack)
14 years ago
Bert Belder
d7de459b80
Use ares_socket_t instead of int for sockets
14 years ago
Bert Belder
6e54f416ad
Fix header files for node_cares.cc
14 years ago
Bert Belder
1937c5e3c1
On windows, there's no support (yet) for chown and symlink functions
14 years ago
Bert Belder
51c6867280
On windows, stat() doesn't give you block (size) info
14 years ago
Bert Belder
f9a74a2327
On windows, mkdir() doesn't take a mode parameter
14 years ago
Bert Belder
8fc3bac868
Fix fsync/fdatasync for windows
14 years ago
Bert Belder
fae7b81589
On windows use eio__pread and eio__pwrite (hack)
14 years ago
Bert Belder
c7f0341d88
Include windows.h in node_file.cc
14 years ago
Bert Belder
a85a776268
Most of node_net is not yet available on windows
14 years ago
Bert Belder
7a1917d86f
Make SetNonBlock and SetSockFlags work on mingw
14 years ago
Bert Belder
cbf73fcccd
Fix headers for node_net.cc
14 years ago
Bert Belder
cd921c2c62
S_IFLNK, S_IFSOCK and SIGCHLD are not available on windows
14 years ago
Bert Belder
81b26dc555
Stat watchers don't work on windows yet
14 years ago
Bert Belder
b4510d57dc
There is no child process support for windows yet
14 years ago
Bert Belder
6d1af51de6
Fix header files for node_buffer.cc
14 years ago
Bert Belder
30bab52741
Disable node.cc functions that are not supported on windows
14 years ago
Bert Belder
dcc3508890
There's no SIGCHLD on windows
14 years ago
Bert Belder
4a42e408d2
Properly intialize winsock
14 years ago
Bert Belder
a177d60e2b
Fix headers for node.cc
14 years ago
Bert Belder
ae8906e7d1
Add errno.h to platform_win32.cc
14 years ago
Bert Belder
518fa2e29a
node_stdio stub for windows
14 years ago
Bert Belder
b85c4c445b
Macros for warning about unimplemented APIs
14 years ago
Bert Belder
8a3132a406
Avoid WCHAR string conversion warning
14 years ago
Bert Belder
0b54514a86
`errno` is reserved; use `errorno`
14 years ago
Bert Belder
63bff5434d
No implementation for OS::GetExecutablePath and OS::GetMemory yet
14 years ago
Bert Belder
e98a06d90f
Make winapi_perror public
14 years ago
Bert Belder
dae9752973
Stub out platform_win32.h
14 years ago
Ryan Dahl
a8f666ebb8
Now working on v0.3.3-pre
14 years ago
Ryan Dahl
4bb914bde9
Bump version to v0.3.2
14 years ago
Brian White
9eaf2329e7
Fix compilation on OpenBSD and FreeBSD
While it compiles fine on FreeBSD, at least on amd64 node dies with:
"CALL_AND_RETRY_0 allocation failed - process out of memory"
14 years ago
Ryan Dahl
d0beac70f4
Revert "Simplify next tick logic by looping around ev_loop"
This reverts commit 241ea7e595
.
Fixes GH-511: https://github.com/ry/node/issues/issue/511
14 years ago
Felix Geisendörfer
e27418ca3f
Prefer require.cache over native module cache
This patch changes node's module loading behavior so that the
require.cache is always the first place to consider when loading a
module.
The motivation for this change is to help people who are writing
focused tests for their node.js applications, and need a mechanism
to inject test doubles to replace native node.js modules.
14 years ago
Ryan Dahl
e3d1808ef0
Rename node::SecureStream to node::crypto::Connection
node::SecureStream is definitely not a "stream" in the Node sense. Renaming
it to avoid ambiguity. (Adding namespace to not confuse with some other
Connection object.)
14 years ago
Brian White
f1762ff815
Add os module and getHostname
14 years ago
Ryan Dahl
70baeba8a9
Add receivedShutdown() binding
14 years ago
Ryan Dahl
dac4d486ec
Accept Buffers as well as strings for addCert, addKey
14 years ago
Ryan Dahl
6bc9b2ef92
clients without certs are unauthed.
14 years ago
Ryan Dahl
180dfca03f
Pretty error message messes up if readFileSync in main module fails.
TODO test/message test for this.
14 years ago
Ryan Dahl
5bca100afe
Server must not request cert.
14 years ago
Ryan Dahl
5a21138e37
fix global leak
14 years ago
Anders Conbere
e9c7195471
Reworks the two functions traverser and findModulePath into a more readable form.
This is not the supposed end of these changes, but a first change that
should make future changes easier to reason about.
14 years ago
Sean Braithwaite
fcc38129a3
Check buffer length using string length
+ Utf8Length is really slow but has the same semantics in this case
14 years ago
Ryan Dahl
c70acbb1a3
implement openpty for sun
14 years ago