summary refs log tree commit diff
path: root/src/libstd/sys/common/mod.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-05 16:50:11 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-11 15:23:34 -0800
commit395709ca6d39ba1e095e404e1d2a169d918b7f0c (patch)
treee6a3d38abb028967c3139ee234d1c69935806800 /src/libstd/sys/common/mod.rs
parenta954663db66fc8efb1889beaf7bd1771ecbb9b21 (diff)
downloadrust-395709ca6d39ba1e095e404e1d2a169d918b7f0c.tar.gz
rust-395709ca6d39ba1e095e404e1d2a169d918b7f0c.zip
std: Add a `net` module for TCP/UDP
This commit is an implementation of [RFC 807][rfc] which adds a `std::net`
module for basic neworking based on top of `std::io`. This module serves as a
replacement for the `std::old_io::net` module and networking primitives in
`old_io`.

[rfc]: fillmein

The major focus of this redesign is to cut back on the level of abstraction to
the point that each of the networking types is just a bare socket. To this end
functionality such as timeouts and cloning has been removed (although cloning
can be done through `duplicate`, it may just yield an error).

With this `net` module comes a new implementation of `SocketAddr` and `IpAddr`.
This work is entirely based on #20785 and the only changes were to alter the
in-memory representation to match the `libc`-expected variants and to move from
public fields to accessors.
Diffstat (limited to 'src/libstd/sys/common/mod.rs')
-rw-r--r--src/libstd/sys/common/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/common/mod.rs b/src/libstd/sys/common/mod.rs
index 80fa5f64597..5054f72ea98 100644
--- a/src/libstd/sys/common/mod.rs
+++ b/src/libstd/sys/common/mod.rs
@@ -24,6 +24,7 @@ pub mod condvar;
 pub mod helper_thread;
 pub mod mutex;
 pub mod net;
+pub mod net2;
 pub mod rwlock;
 pub mod stack;
 pub mod thread;