diff options
| author | Stepan Koltsov <stepan.koltsov@gmail.com> | 2013-08-05 21:15:55 +0400 |
|---|---|---|
| committer | Stepan Koltsov <stepan.koltsov@gmail.com> | 2013-08-06 18:16:15 +0400 |
| commit | 95b3689b34035a0c3d7831441c1eae0904903351 (patch) | |
| tree | edb16fafc8a0f2ae956adf2ce13ae703ea25c7ea /src/rt/sync/timer.cpp | |
| parent | ca6385034c1ca269b0b797fa039d485f7f413959 (diff) | |
| download | rust-95b3689b34035a0c3d7831441c1eae0904903351.tar.gz rust-95b3689b34035a0c3d7831441c1eae0904903351.zip | |
Implement FromStr for IpAddr and SocketAddr
Better than that in rt::uv::net, because it: * handles invalid input explicitly, without fail!() * parses socket address, not just IP * handles various ipv4-in-ipv6 addresses, like 2001:db8:122:344::192.0.2.33 (see http://tools.ietf.org/html/rfc6052 for example) * rejects output like `127.0000000.0.1` * does not allocate heap memory * have unit tests
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions
