rollup merge of #22015: alexcrichton/netv2
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.
Showing
src/libstd/net/addr.rs
0 → 100644
此差异已折叠。
src/libstd/net/ip.rs
0 → 100644
src/libstd/net/mod.rs
0 → 100644
src/libstd/net/parser.rs
0 → 100644
src/libstd/net/tcp.rs
0 → 100644
此差异已折叠。
src/libstd/net/test.rs
0 → 100644
src/libstd/net/udp.rs
0 → 100644
src/libstd/sys/common/net2.rs
0 → 100644
src/libstd/sys/unix/net.rs
0 → 100644
src/libstd/sys/windows/net.rs
0 → 100644
想要评论请 注册 或 登录