Expand description
This implements “anonymous” sockets, that do not correspond to anything on the host system and are entirely implemented inside Miri. We also use the same infrastructure to implement unnamed pipes.
Structs§
- Anon
Socket 🔒 - One end of a pair of connected unnamed sockets.
- Buffer 🔒
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§
- anonsocket_
read 🔒 - Read from AnonSocket and return the number of bytes read.
- anonsocket_
write 🔒 - Write to AnonSocket based on the space available and return the written byte size.