Expand description
Driver for VirtIO socket devices.
To use the driver, you should first create a VirtIOSocket
instance with your VirtIO
transport, and then create a VsockConnectionManager
wrapping it to keep track of
connections. If you want to manage connections yourself you can use the VirtIOSocket
directly
for a lower-level interface.
See VsockConnectionManager
for a usage example.
Structs§
- Connection
Info - Information about a particular vsock connection.
- Stream
Shutdown - Flags sent with a shutdown request to hint that the peer won’t send or receive more data.
- VirtIO
Socket - Low-level driver for a VirtIO socket device.
- Vsock
Addr - Socket address.
- Vsock
Connection Manager - A higher level interface for VirtIO socket (vsock) devices.
- Vsock
Event - An event received from a VirtIO socket device.
Enums§
- Disconnect
Reason - The reason why a vsock connection was closed.
- Socket
Error - The error type of VirtIO socket driver.
- Vsock
Event Type - Details of the type of an event received from a VirtIO socket.
Constants§
- VMADDR_
CID_ HOST - Well-known CID for the host.