Until now, all received file descriptors were reported as being UV_TCP streams: AF_INET/AF_INET6 sockets of type SOCK_STREAM. This commit adds support for AF_UNIX/AF_FILE sockets (UV_NAMED_PIPE in libuv nomenclature). Support for UV_UDP handles (AF_INET/AF_INET6 sockets of type SOCK_DGRAM) still needs to be implemented.
Makes the pipe_connect_to_file test pass on Windows.
This patch changes how uv-win uses the UV_SHUTTING and UV_SHUT flags. UV_SHUT is now only used for tcp handles to track whether shutdown() has actually been called. UV_SHUTTING has the more generic meaning of "no longer readable". It would be good to replace it by an actual UV_READABLE flag in the future. This makes the shutdown_close_tcp and shutdown_close_pipe tests pass on windows.
If a test failed we would previously see: Output from process `test_foo`: blah Output from process `test_foo`: (nothing) This commit changes it to: Output from process `test_foo`: blah Output from process `foo_helper`: (nothing)
Happens only when using a debug version of the crt.
This fix was merged without tests: https://github.com/philips/libuv/tree/fix-read-on-windows-to-handle-eof So take tests from igorzi: igorzi@46024bf
GetProcessMemoryInfo is in psapi and GetAdaptersAddresses is in iphlpapi