{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/22015","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/22015/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/22015/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/22015/events","html_url":"https://github.com/rust-lang/rust/pull/22015","id":56849539,"number":22015,"title":"std: Add a `net` module for TCP/UDP","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-02-06T18:35:24Z","updated_at":"2015-02-11T23:24:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/22015","html_url":"https://github.com/rust-lang/rust/pull/22015","diff_url":"https://github.com/rust-lang/rust/pull/22015.diff","patch_url":"https://github.com/rust-lang/rust/pull/22015.patch"},"body":"This commit is an implementation of [RFC 807][rfc] which adds a `std::net`\r\nmodule for basic neworking based on top of `std::io`. This module serves as a\r\nreplacement for the `std::old_io::net` module and networking primitives in\r\n`old_io`.\r\n\r\n[rfc]: fillmein\r\n\r\nThe major focus of this redesign is to cut back on the level of abstraction to\r\nthe point that each of the networking types is just a bare socket. To this end\r\nfunctionality such as timeouts and cloning has been removed (although cloning\r\ncan be done through `duplicate`, it may just yield an error).\r\n\r\nWith this `net` module comes a new implementation of `SocketAddr` and `IpAddr`.\r\nThis work is entirely based on #20785 and the only changes were to alter the\r\nin-memory representation to match the `libc`-expected variants and to move from\r\npublic fields to accessors."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/73987357","html_url":"https://github.com/rust-lang/rust/pull/22015#issuecomment-73987357","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/22015","id":73987357,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T23:24:47Z","updated_at":"2015-02-11T23:24:47Z","body":"@bors: r=aturon 395709c\r\n"}}