mirror of
https://github.com/Droid-VM/crosvm.git
synced 2026-11-17 06:58:03 +00:00
Rather than accepting a StreamChannel and then failing at runtime if passed a byte-oriented stream rather than a message-oriented stream, we can make the unix platform-specific Tube code accept a UnixSeqpacket directly, moving the check to compile time. Since Tube no longer wraps StreamChannel, we can also remove the unix platform-specific peek_size() and from_unix_seqpacket() functions that were only used by Tube. BUG=None TEST=tools/dev_container tools/presubmit Change-Id: Idcb4b459ff408abee25436f9c5065507eb031c79 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6068213 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Noah Gold <nkgold@google.com> Reviewed-by: Frederick Mayle <fmayle@google.com> |
History
|
|
|---|---|---|
| .. | ||
| main.rs | ||
| net.rs | ||
| syslog.rs | ||
| tube.rs | ||