Bert Belder
96f2ef6bc6
Make test-getsockname compile with msvc
2011-07-19 15:01:10 +02:00
Bert Belder
8c4a097bc9
Windows: make clean deletes object files in src/win
2011-07-19 15:01:09 +02:00
Ben Noordhuis
c2ad51e39f
test-bind-error: fix 'control reaches end of non-void function'
2011-07-19 13:51:31 +02:00
Ben Noordhuis
7cc527997f
uv-common: fix 'initialization discards qualifiers from pointer target type'
2011-07-19 13:51:31 +02:00
Ben Noordhuis
3207f8ae40
uv-unix: fix 'passing argument 1 of ‘uv__stream_open’ from incompatible pointer type'
2011-07-19 13:51:31 +02:00
Ben Noordhuis
c0d4669f87
uv-unix: fix 'implicit declaration of function ‘accept4’'
2011-07-19 13:51:31 +02:00
Ryan Dahl
d4563a197a
Allow and test for lazy uv_tcp_listen
2011-07-19 02:40:54 -07:00
Bert Belder
3a91232f66
Split up uv-win.c
2011-07-19 03:47:30 +02:00
Bert Belder
e909b95491
Add MinGW makefiles to VS project
2011-07-19 03:34:14 +02:00
Bert Belder
1a1cd6d1f5
Enable link-time code generation for msvc
2011-07-19 03:34:13 +02: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
d56af313ee
Revert "uv_win: uv_pipe_connect should return -1 on error"
...
This reverts commit 7b4607348a .
2011-07-15 20:26:08 +02:00
Shigeki Ohtsu
1be48f12a0
ev: define HAVE_SYNC_FILE_RANGE if kernel >= 2.6.17 *and* glibc version >= 2.6
2011-07-15 15:44:20 +02:00
Henry Rawas
d540872107
uv-win: allow listen on unbound tcp handle
2011-07-15 02:49:34 +02:00
Bert Belder
7b4607348a
uv_win: uv_pipe_connect should return -1 on error
2011-07-15 02:38:35 +02:00
Bert Belder
902dd567b1
Benchmarks use the improved request api
2011-07-14 10:46:34 -07: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
Ben Noordhuis
9aff11026b
runner: bring back benchmark output
2011-07-14 03:33:56 +02:00
Ben Noordhuis
86341f8e02
Makefile: disable test-% and bench-% targets
...
Targets bench-% and test-% mess up dependency resolution, disable for now.
2011-07-14 03:32:19 +02:00
Bert Belder
4c2d0545fc
Whitespace fixes
2011-07-14 03:00:21 +02:00
Bert Belder
4a6efee4ce
uv-win: get rid of unused variables
2011-07-14 03:00:20 +02:00
Ben Noordhuis
a29b2099ac
Make it possible to run individual tests.
...
Fixes #100 .
2011-07-14 02:19:36 +02:00
Ben Noordhuis
f142a4b60a
uv-linux: remove unused variables
2011-07-13 23:59:30 +02:00
Ben Noordhuis
b50105e491
uv-unix: remove unused variable
2011-07-13 23:59:01 +02:00
Ben Noordhuis
932f0ad16b
uv-linux: fix warning: implicit declaration of function ‘readlink’
2011-07-13 23:46:30 +02:00
Ben Noordhuis
f560f75a17
uv-unix: fix warning: control reaches end of non-void function
2011-07-13 23:46:30 +02:00
Ben Noordhuis
e364dd15c1
uv-unix: fix warning: no return statement in function returning non-void
2011-07-13 23:46:30 +02:00
Ben Noordhuis
aad95b841e
uv-unix: increment check_init counter in uv_check_init()
2011-07-13 23:05:09 +02:00
Bert Belder
28650425e2
uv-win: refactor request processing
2011-07-13 21:49:15 +02:00
Ben Noordhuis
9c19391536
test-ping-pong: cast callback to expected prototype.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
afc96b58c8
test-delayed-accept.c: fix type mismatch in comparison.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
1a53b89847
test-hrtime: fix printf() compiler warning.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
0ebd2ce02d
test-delayed-accept: remove unused variable.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
d7389e6f89
test-async: remove unused variable.
2011-07-13 18:06:05 +02:00
Ben Noordhuis
4829ad5d04
test-getsockname: fix function prototype, clean up unused variable.
2011-07-13 18:06:05 +02:00
Bert Belder
b4f1d58ab3
Add test-getsockname to msvs project
2011-07-13 16:40:04 +02:00
Bert Belder
036d5db16f
test-getsockname: minor cleanups
2011-07-13 16:39:54 +02:00
Ben Noordhuis
48eb98c464
unix: implement uv_getsockname()
2011-07-13 00:55:35 +02:00
Ben Noordhuis
f852c517a1
Change uv_pipe_*() prototypes from char* to const char*.
2011-07-13 00:12:30 +02:00
Henry Rawas
6a67b51b4c
fix uv_getsockname for listening socket
2011-07-12 22:43:43 +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
Ben Noordhuis
1a0e452de1
freebsd: add uv_hrtime().
2011-07-11 03:00:34 +02:00
Ben Noordhuis
cef595eedc
Fix indentation in src/uv-freebsd.c
2011-07-11 03:00:34 +02:00