diff options
| author | Tyler Julian <tjulian@uber.com> | 2017-01-10 19:11:56 -0800 |
|---|---|---|
| committer | Tyler Julian <tjulian@uber.com> | 2017-02-04 12:00:19 -0800 |
| commit | a40be0857c7bf48e39f815417b0b5293cd8ed1aa (patch) | |
| tree | f142739d4a6f706f583380436bcb28e4ca6f8ffd /src/liblibc | |
| parent | 9749df52b7ecfc8123e392b9d49786e2abf20320 (diff) | |
| download | rust-a40be0857c7bf48e39f815417b0b5293cd8ed1aa.tar.gz rust-a40be0857c7bf48e39f815417b0b5293cd8ed1aa.zip | |
libstd/net: Add `peek` APIs to UdpSocket and TcpStream
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.
Diffstat (limited to 'src/liblibc')
| m--------- | src/liblibc | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/src/liblibc b/src/liblibc -Subproject 7d57bdcdbb56540f37afe5a934ce12d33a6ca7f +Subproject cb7f66732175e6171587ed69656b7aae7dd2e6e |
