Uh oh!
There was an error while loading. Please reload this page.
Clarify the behavior of UDP sockets wrt. multiple addresses in connect - #44388
Conversation
rust-highfive
commented
Sep 7, 2017
r? @BurntSushi (rust_highfive has picked a reviewer for you, use r? to override) |
| /// Unlike in the TCP case, passing an array of addresses to the `connect` | ||
| /// function of a UDP socket is not a useful thing to do: The OS will be | ||
| /// unable to determine whether something is listening on the remote | ||
| /// address without the application sending data. |
There was a problem hiding this comment.
since this is no longer associated with an example, seems like we can move this paragraph above the # Examples heading. what do you think?
There was a problem hiding this comment.
My rationale for leaving it there was that this explanation is in a similar spot for the other methods and also in TcpStream. But I guess I can move it up.
There was a problem hiding this comment.
Actually, the text is already up there. It's just summarized in the examples because there's usually an example of using multiple addresses.
frewsxcv
commented
Sep 10, 2017
@bors r+ rollup |
bors
commented
Sep 10, 2017
📌 Commit b4d0f61 has been approved by |
…=frewsxcv Clarify the behavior of UDP sockets wrt. multiple addresses in `connect` CC @frewsxcvrust-lang#22569rust-lang#44209
…=frewsxcv Clarify the behavior of UDP sockets wrt. multiple addresses in `connect` CC @frewsxcvrust-lang#22569rust-lang#44209
BurntSushi
commented
Sep 11, 2017
This seems fine to me. It might be worth noting that these docs appear to be strengthening the contract of |
…=frewsxcv Clarify the behavior of UDP sockets wrt. multiple addresses in `connect` CC @frewsxcvrust-lang#22569rust-lang#44209
…=frewsxcv Clarify the behavior of UDP sockets wrt. multiple addresses in `connect` CC @frewsxcvrust-lang#22569rust-lang#44209
…=frewsxcv Clarify the behavior of UDP sockets wrt. multiple addresses in `connect` CC @frewsxcvrust-lang#22569rust-lang#44209
CC @frewsxcv#22569#44209