summary refs log tree commit diff
path: root/src/libstd/net_ip.rs
AgeCommit message (Collapse)AuthorLines
2012-07-09rustc: Switch to the new resolution passPatrick Walton-1/+2
2012-07-06Revert "rustc: Switch to the new resolution pass"Niko Matsakis-2/+1
This reverts commit c4af6e92fbae171c56a4e68666025725555fc9d8. Branch was burning...many, many unresolved imports.
2012-07-06rustc: Switch to the new resolution passPatrick Walton-1/+2
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-62/+56
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-03Change crust -> extern.Graydon Hoare-1/+1
2012-07-02Merge remote-tracking branch 'brson/uv'Brian Anderson-24/+319
Conflicts: src/libstd/net_ip.rs src/libstd/net_tcp.rs
2012-07-01Convert to new closure syntaxBrian Anderson-1/+1
2012-06-29Ignore various uv tests that failBrian Anderson-0/+2
2012-06-29std: adding some basic docs for net::ip::get_addrJeff Olson-63/+76
2012-06-29std/rt: cleanup and adding sockaddr_in6 mapping for win32Jeff Olson-0/+1
2012-06-29rename net::ip tests en masseJeff Olson-6/+6
2012-06-29std: fix errors from recent rebase and vec expr/type syntax updateJeff Olson-4/+4
2012-06-29std: addressing #2656 (ipv6 support in net::tcp)Jeff Olson-2/+2
.. there are some additional FIXME nags in net_tcp (L 1012) about blocking because libuv is holding unsafe ptrs to task local data. the proposed fix going is not really feasible w/ the current design, IMO, but i'll leave it there in case someone really wants to make the case without creating more hassle than it's worth.
2012-06-29std: add test for net::ip::get_addr failureJeff Olson-0/+10
2012-06-29std: beef up ipv4 validation a bitJeff Olson-7/+55
now the best of what we had prior to libuv integration (proper validation of an ipv4 string), along with libuv support (initial ipv6 support) libuv has even weaker facilities for validating an input ipv6 (but still more than what we had), so eventually the "right" answer would be to roll a proper ipv6 address string parser in rust
2012-06-29std: whitespace/comment cleanJeff Olson-12/+0
2012-06-29std: net::ip::get_addr is working w/ happy path test. needs more.Jeff Olson-21/+64
2012-06-29std: roughcut impl of net::ip::get_addr()Jeff Olson-1/+98
still needs tests
2012-06-29std: adding net::ip::v6 utils and rudimentary tests, huzzah! (see caveats)Jeff Olson-8/+107
libuv's own ip vetting code appears to in a somewhat woeful state, for both ipv4 and ipv6 (there are some notes in the tests for net_ip, as well as stuff added in uv_ll). They are aware of this and welcome patches. I have rudimentary code in place that can verify whether the provided str ip was, in fact, validly parsed by libuv, making a few assumptions: * for ipv4, we assume that the platform's INADDR_NONE val is 0xffffffff , I should write a helper to return this value from the platform's libc headers instead of hard-coding it in rust. * for ipv6, we assume that the library will always return '::' for malformed inputs.. as is the case in 64bit ubuntu. I need to verify this on other platforms.. but at least the debugging output is in place, so if expectations don't line up, it'll be straightforward to address
2012-06-29std: adding uv::ll::ip4_name and refactored net::ip to use itJeff Olson-29/+23
replaces net::ip's previously, hand-rolled impl for ipv4 addr parsing.. we're relying on libuv, now
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-1/+1
2012-05-22std: add try_parse_addr and change an alt w/ ip_addr::ipv6 to avoid warningJeff Olson-6/+30
2012-05-22std: FIXME stub net::ip::ip_addr::ipv6 variant...needs parse/format implJeff Olson-0/+4
still need implementation for parsing/output formatting and (perhaps?) representation (for now, i just followef the ipv4 variant's lead and am representing it as a tuple of 8x u16). parsing an ipv6 addr is way more complex than parsing an ipv4 addr, so i'm putting off an implementation here, for now. candidate solutions: - could use getaddrinfo() (exists on both POSIX and windows), but with incompatible fn signatures. - libuv has a way to parse an ipv6 string into a sockaddr_in6, but it also requires a port, so it's probably not aprop for ip_addr
2012-05-22std: export net::ip::format_addrJeff Olson-0/+1
2012-05-22std: pushing existing code in net.rs -> net_ip.rs and re-import/exportingJeff Olson-0/+74