diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-02-05 09:14:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-05 09:14:38 -0500 |
| commit | ca202fe181ec52998fe8843e87528bbd920605d5 (patch) | |
| tree | 2115c96bc477901cb36370ee25f3b1407423c524 /src/test/run-pass/thinlto | |
| parent | c4c6c49e526d39d8cdc8eb8072d2e45b4086dc82 (diff) | |
| parent | a40be0857c7bf48e39f815417b0b5293cd8ed1aa (diff) | |
| download | rust-ca202fe181ec52998fe8843e87528bbd920605d5.tar.gz rust-ca202fe181ec52998fe8843e87528bbd920605d5.zip | |
Rollup merge of #38983 - APTy:udp-peek, r=aturon
Add peek APIs to std::net Adds "peek" APIs to `std::net` sockets, including: - `UdpSocket.peek()` - `UdpSocket.peek_from()` - `TcpStream.peek()` These methods enable socket reads without side-effects. That is, repeated calls to `peek()` return identical data. This is accomplished by providing the POSIX flag `MSG_PEEK` to the underlying socket read operations. This also moves the current implementation of `recv_from` out of the platform-independent `sys_common` and into respective `sys/windows` and `sys/unix` implementations. This allows for more platform-dependent implementations where necessary. Fixes #38980
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
