Expand description
This implements “virtual” sockets, that do not correspond to anything on the host system and
are entirely implemented inside Miri.
This is used to implement socketpair and pipe.
Structs§
- Buffer 🔒
- Virtual
Socket 🔒 - One end of a pair of connected virtual sockets.
Enums§
Constants§
- MAX_
SOCKETPAIR_ 🔒BUFFER_ CAPACITY - The maximum capacity of the socketpair buffer in bytes. This number is arbitrary as the value can always be configured in the real system.
Traits§
Functions§
- virtual_
socket_ 🔒read - Read from VirtualSocket and return the number of bytes read.
- virtual_
socket_ 🔒write - Write to VirtualSocket based on the space available and return the written byte size.