]> git.lizzy.rs Git - rust.git/commit
auto merge of #15265 : omasanori/rust/udp, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 2 Jul 2014 09:21:39 +0000 (09:21 +0000)
committerbors <bors@rust-lang.org>
Wed, 2 Jul 2014 09:21:39 +0000 (09:21 +0000)
commit3fb35683779ab9135d5242f8d323c23d075d2c69
treec15a6fb71e06e81f18e9fd990732c970e0aff2a0
parent7c4d8e94ba58713c65f125f721e0d95f7f66c035
parent55f5a1ef59849709a012fcd7e2f89e7ccc42b159
auto merge of #15265 : omasanori/rust/udp, r=alexcrichton

POSIX has recvfrom(2) and sendto(2), but their name seem not to be suitable with Rust. We already renamed getpeername(2) and getsockname(2), so I think it makes sense.

Alternatively, `receive_from` would be fine. However, we have `.recv()` so I chose `recv_from`.

What do you think? If this makes sense, should I provide `recvfrom` and `sendto` deprecated methods just calling new methods for compatibility?