Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Add a net module for TCP/UDP #22015

Merged
merged 1 commit into from
Feb 12, 2015
Merged

std: Add a net module for TCP/UDP #22015

merged 1 commit into from
Feb 12, 2015

Commits on Feb 11, 2015

  1. 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 rust-lang#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.
    alexcrichton committed Feb 11, 2015
    Configuration menu
    Copy the full SHA
    395709c View commit details
    Browse the repository at this point in the history