rust/src/libstd
bors e162438162 auto merge of #13919 : thomaslee/rust/thomaslee_proposed_tcpstream_open, r=alexcrichton
Been meaning to try my hand at something like this for a while, and noticed something similar mentioned as part of #13537. The suggestion on the original ticket is to use `TcpStream::open(&str)` to pass in a host + port string, but seems a little cleaner to pass in host and port separately -- so a signature like `TcpStream::open(&str, u16)`.

Also means we can use std::io::net::addrinfo directly instead of using e.g. liburl to parse the host+port pair from a string.

One outstanding issue in this PR that I'm not entirely sure how to address: in open_timeout, the timeout_ms will apply for every A record we find associated with a hostname -- probably not the intended behavior, but I didn't want to waste my time on elaborate alternatives until the general idea was a-OKed. :)

Anyway, perhaps there are other reasons for us to prefer the original proposed syntax, but thought I'd get some thoughts on this. Maybe there are some solid reasons to prefer using liburl to do this stuff.
2014-05-12 23:11:45 -07:00
..
comm core: Remove the cast module 2014-05-11 01:13:02 -07:00
fmt librustc: Remove all uses of ~str from librustc. 2014-05-12 11:28:57 -07:00
hash core: Remove the cast module 2014-05-11 01:13:02 -07:00
io auto merge of #13919 : thomaslee/rust/thomaslee_proposed_tcpstream_open, r=alexcrichton 2014-05-12 23:11:45 -07:00
num core: Remove the cast module 2014-05-11 01:13:02 -07:00
path core: Remove the cast module 2014-05-11 01:13:02 -07:00
rt Add stat method to std::io::fs::File to stat without a Path. 2014-05-12 19:52:29 -07:00
sync sync::deque: port to the new allocator API 2014-05-11 13:54:53 -04:00
unstable core: Remove the cast module 2014-05-11 01:13:02 -07:00
ascii.rs core: Remove the cast module 2014-05-11 01:13:02 -07:00
bitflags.rs Add (unsafe) coercion from bits to std::bitflags 2014-05-05 15:24:36 -07:00
c_str.rs core: Remove the cast module 2014-05-11 01:13:02 -07:00
c_vec.rs core: Remove the cast module 2014-05-11 01:13:02 -07:00
cleanup.rs Convert most code to new inner attribute syntax. 2014-03-28 17:12:21 -07:00
from_str.rs core: Inherit the bool module 2014-05-07 08:14:56 -07:00
gc.rs core: Inhert ~/@/& cmp traits, remove old modules 2014-05-07 08:15:58 -07:00
lib.rs Add the patch number to version strings. Closes #13289 2014-05-12 19:52:29 -07:00
local_data.rs core: Remove the cast module 2014-05-11 01:13:02 -07:00
macros.rs librustc: Remove all uses of ~str from librustc. 2014-05-12 11:28:57 -07:00
option.rs Improved example code in Option 2014-05-12 19:52:29 -07:00
os.rs Test fixes from rollup 2014-05-12 20:17:36 -07:00
prelude.rs core: Move Option::expect to libstd from libcore 2014-05-07 08:17:32 -07:00
rc.rs heap: replace exchange_free with deallocate 2014-05-11 18:41:45 -04:00
reflect.rs Register new snapshots 2014-05-09 21:13:02 -07:00
repr.rs core: Remove the cast module 2014-05-11 01:13:02 -07:00
result.rs doc: Fix some broken links 2014-05-09 14:42:12 -07:00
rtdeps.rs Remove libc from std 2014-04-04 09:31:21 -07:00
slice.rs register snapshots 2014-05-12 02:52:32 -04:00
str.rs core: Remove the cast module 2014-05-11 01:13:02 -07:00
strbuf.rs auto merge of #14110 : SSheldon/rust/strbuf_mutable, r=alexcrichton 2014-05-11 16:21:44 -07:00
task.rs core: Add unwrap()/unwrap_err() methods to Result 2014-05-07 08:16:14 -07:00
to_str.rs core: Inherit possible string functionality 2014-05-07 08:16:14 -07:00
unicode.rs core: Inherit necessary unicode functionality 2014-05-07 08:15:58 -07:00
vec.rs core: Remove the cast module 2014-05-11 01:13:02 -07:00