package hvsock
Module Hvsock.HyperkitSource
Low-level interface to the Hyperkit AF_VSOCK interface
The AF_VSOCK port number
Source
type sockaddr = {hyperkit_path : string;(*directory containing the `connect` Unix domain socket, often $HOME/Library/Containers/com.docker.docker/Data/vms/0
*)port : port;
}A Hyperkit AF_VSOCK socket address
include Af_common.S with type sockaddr := sockaddr and type t = Unix.file_descr
listen socket queue_length sets the socket to listening mode with the given maximum queue length
connect ?timeout_ms fd sockaddr connects to a remote socket. On Windows the raw connect call can block forever if the server is not running when the call is executed (even if the server starts up afterwards) there is a default timeout of 300ms. On timeout this will raise Unix_error(Unix.ETIMEDOUT)
Read into a buffer, returning the number of bytes written