package
0.0.0-20211014174411-da7a73a45c8e
Repository: https://github.com/go-hypervisor/virtio.git
Documentation: pkg.go.dev

# README

vsock

Package vsock provides a virtio vsock socket communications.

Acknowledgement

This project was largely inspired by

# Functions

Dial connects to the cid and port via virtio socket.
Listen returns a net.Listener which can accept connections on the given port.

# Constants

VMAddrCIDAny binds any guest’s context ID.
VMAddrCIDHost well-known host context ID.
VMAddrCIDHypervisor reserved hypervisor context ID.
VMAddrCIDReserved reserved guest’s context ID.
VMAddrPortAny binds a random available port.

# Structs

Addr represents a address of vsock endpoint.

# Interfaces

Conn represents a vsock connection which supported half close.
Socket is a connected vsock socket.