Bert Belder
39aac4a5fc
win: better shutdown for pipes
2011-08-26 02:21:33 +02:00
Ryan Dahl
80e5491886
Simplify UDP docs
2011-08-24 12:25:15 -07:00
Bert Belder
5c9d749a57
win: udp support
2011-08-24 04:55:08 +02:00
Ben Noordhuis
36ce74f2ca
Add UDP support to libuv.
2011-08-24 04:55:01 +02:00
Ben Noordhuis
52024061e4
Make uv_getsockname() operate on uv_handle_t handles.
2011-08-24 04:17:36 +02:00
Bert Belder
5cae6e4e57
win: use uv_req_t.overlapped.Internal field to propagate request errors
2011-08-23 21:24:14 +02:00
Bert Belder
811828719f
win: store the tcp deferred bind error in uv_tcp_t.bind_error, remove uv_handle_t.error
2011-08-23 20:41:16 +02:00
Ben Noordhuis
6cc241ac7a
Fix 'incomplete prototype' compiler warnings on SunOS.
2011-08-22 14:27:39 +00:00
Bert Belder
cc0b0e6238
Remove trailing whitespace
2011-08-21 21:46:05 +02:00
Igor Zinkovsky
8448ee4bf6
Windows: Do simultaneous pending AcceptEx calls.
2011-08-18 17:45:59 -07:00
Ryan Dahl
d77e9795d3
Fix spelling
2011-08-18 10:35:52 -07:00
Igor Zinkovsky
422c139306
Windows: Pre-allocate buffers for overlapped WSARecv if the number of active tcp streams is below 50.
2011-08-17 17:44:54 -07:00
Ryan Dahl
e5a938f1f4
Add uv_buf_init() constructor
2011-08-17 17:43:19 -07:00
Ryan Dahl
ed118836c4
Improve docs
2011-08-17 00:42:44 -07:00
Ben Noordhuis
e8497aee5a
Add error code UV_EPIPE.
2011-08-11 02:45:27 +02:00
Ben Noordhuis
4abd1e0ccc
uv-unix: close file descriptors immediately in uv_close()
...
Don't defer closing of socket and pipe file descriptors to the
next iteration of the event loop. It breaks node.js unit tests
that assume the call to `server.close()` immediately frees up
the bound to address.
2011-08-09 23:14:38 +02:00
Ryan Dahl
1493dcf359
Peter Bright's MSVS fixes
2011-08-06 22:36:59 -07:00
Ryan Dahl
a30a7336f0
Build with gyp
2011-08-06 02:17:56 -07:00
Ryan Dahl
52e1a9e997
Upgrade eio (it has better msvs support)
2011-08-06 00:29:39 -07:00
Peter Bright
d84b249616
Support for unescaped arguments, suitable for use with cmd /c.
...
Robust argument escaping that hopefully matches Windows' algorithm for unescaping.
2011-08-04 18:22:47 -07:00
Ryan Dahl
b2ed24d86e
unix: Remove flock code
...
solaris doesn't have flock
2011-08-02 07:08:13 +00:00
Bert Belder
2e9a743da0
Windows: report uv_spawn() failure asynchronously
2011-08-01 20:24:54 -07:00
Igor Zinkovsky
d272a2183d
Windows: spawn child processes
2011-07-29 19:02:51 -07:00
Ryan Dahl
7108ca8853
uv_spawn requires stdio pipes to be initialized
2011-07-29 15:37:00 -07:00
Ben Noordhuis
8e8af8fd34
uv-unix: use lock file to detect stale UNIX sockets
2011-07-29 03:59:55 +02:00
Igor Zinkovsky
fc7bc2be70
fix mingw build; add stubs for child process API
2011-07-27 11:05:32 -07:00
Ryan Dahl
92bc7b4959
Start uv_spawn()
...
Unix only at the moment. Lacks test for stdio
2011-07-25 16:19:27 -04:00
Igor Zinkovsky
252da78830
uv_std_handle + uv_listen on stdin
2011-07-25 10:28:50 -07:00
Igor Zinkovsky
e7497227bd
merge uv_tcp_listen and uv_pipe_listen into uv_listen
2011-07-22 16:57:09 -07:00
Ben Noordhuis
afd22904ea
ev: mark inline functions in ev.h with __attribute__((unused))
...
Silences the ton of warnings you get with `gcc -Wall -Wextra`.
2011-07-21 15:55:23 +02:00
Igor Zinkovsky
f8bdddcda9
Allow pipe name to be in utf8 for uv_pipe_bind and uv_pipe_connect
2011-07-20 18:55:40 -07:00
Ryan Dahl
b931c9313f
uv_close returns void
2011-07-20 18:03:48 -07:00
Ryan Dahl
07b49ce59a
add uv_ip4_name and uv_ip6_name
2011-07-18 17:39:04 -07:00
Ben Noordhuis
4eff34da43
uv-unix: pipes API implementation
...
Based on UNIX sockets to avoid the vagaries of FIFOs
in asynchronous mode. Currently unlinks stale sockets
before binding and cleans them up again after shutdown.
2011-07-19 00:58:02 +02:00
Igor Zinkovsky
4d31f838b0
Windows: handle ERROR_PIPE_BUSY in uv_pipe_connect
2011-07-18 13:02:32 -07:00
Bert Belder
c1bddb9677
Stop g++ from complaining about anonymous struct usage
2011-07-16 00:33:31 +02:00
Bert Belder
2f83928b6f
Define union uv_any_req
2011-07-14 10:46:34 -07:00
Bert Belder
0ea4c87f8b
Windows implementation of new request API
...
This changes uv-win to use the new uv_req subclasses.
It gets rid of the uv_req.flags field. There used to be only request flag
(UV_REQ_PENDING), and it was mostly obsolete; it only had a real purpose for
internal uv_read requests. Now we'll use the UV_HANDLE_READ_PENDING flag on
the handle instead.
This patch also simplifies the accept logic for named pipes on windows. We
no longer have a separate struct to store information about established
connections. Instead we just carry over the windows HANDLE from the accept
request to the client handle in uv_pipe_accept().
2011-07-14 10:46:08 -07:00
Ryan Dahl
abe0b1ea61
Better request API
...
Instead of uv_shutdown, uv_write, uv_connect taking raw uv_req_t we subclass
uv_req_t into uv_shutdown_t, uv_write_t, and uv_connect_t.
uv_req_init is removed.
2011-07-14 10:45:28 -07:00
Igor Zinkovsky
f5ff869488
allocate windows pipe handles on demand
2011-07-13 20:43:10 -07:00
Bert Belder
4c2d0545fc
Whitespace fixes
2011-07-14 03:00:21 +02:00
Bert Belder
28650425e2
uv-win: refactor request processing
2011-07-13 21:49:15 +02:00
Ben Noordhuis
f852c517a1
Change uv_pipe_*() prototypes from char* to const char*.
2011-07-13 00:12:30 +02:00
Henry Rawas
6b32ebc54f
uv_getsockname
2011-07-12 09:57:08 -07:00
Igor Zinkovsky
2e49cc56d1
Rename uv_pipe_create to uv_pipe_bind.
...
Fixes issue #97 .
2011-07-11 15:24:35 -07:00
Igor Zinkovsky
b6a6dae34f
Named pipes implementation for Windows
2011-07-09 21:41:04 +02:00
Robert Mustacchi
ee599ec114
Fix Linux build
2011-07-07 23:55:58 -07:00
Robert Mustacchi
8287551b91
Fix SunOS build
2011-07-07 23:55:50 -07:00
Ryan Dahl
6d8c499e35
Don't export the private CPP symbols.
2011-07-07 22:38:41 -07:00
Ryan Dahl
18fa8c0ecd
Move ev.h to include/
2011-07-07 21:55:01 -07:00
Robert Mustacchi
8c00b369b4
C99 compatibility.
...
Get 99% of the way there for --std=c89 -pedantic for core files. Also cleans
up follow up warnings and others in tests.
2011-07-07 21:39:08 -07:00
Ryan Dahl
ce8ff3031c
src/ and include/ directories
...
Helps #71 but does not update the MSVC files.
2011-07-07 07:52:57 -07:00