Hvsock.Af_hypervSourceLow-level interface to the AF_HYPERV socket family available on Windows kernels.
type vmid = | WildcardAny partition
*)| ChildrenAny child partition
*)| LoopbackThe same partition
*)| ParentThe parent partition
*)| Id of Uuidm.tA specific VM id
*)A vmid identifies a VM, also known as a partition
A serviceid identifies a service (like a port number)
An AF_HVSOCK socket address
include Af_common.S with type sockaddr := sockaddr and type t = Unix.file_descrlisten 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
Look up a vmid given a VM's human-readable name. This function requires Administrator privileges.
Register the serviceid in the registry. This function requires Administrator privileges.