]> git.lizzy.rs Git - rust.git/commit
native: Implement timeouts for unix networking
authorAlex Crichton <alex@alexcrichton.com>
Sat, 26 Apr 2014 03:50:22 +0000 (20:50 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 8 May 2014 06:28:10 +0000 (23:28 -0700)
commit295e0a04ad57c001e854c5f52cecc18335113544
treeb66055fe8b05649eb017ca18dfe2b49f454c41ef
parente27f27c8588f5cfa0cd9dfbbdf7609ea2d6818ec
native: Implement timeouts for unix networking

This commit has an implementation of the previous commit's timeout interface for
I/O objects on unix platforms. For implementation details, see the large comment
at the end of libnative/io/net.rs which talks about the general strategy taken.

Thankfully, all of these implementations can share code because they're
performing all the same operations.

This commit does not implement timeouts for named pipes on windows, only tcp/udp
objects on windows (which are quite similar to their unix equivalents).
src/libnative/io/c_unix.rs
src/libnative/io/c_win32.rs
src/libnative/io/file_unix.rs
src/libnative/io/file_win32.rs
src/libnative/io/net.rs
src/libnative/io/pipe_unix.rs
src/libnative/io/util.rs