package hvsock
-
hvsock
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val string_of_vmid : vmid -> string
An AF_HVSOCK socket address
val bind : Unix.file_descr -> sockaddr -> unit
bind socket sockaddr
binds socket
to sockaddr
val accept : Unix.file_descr -> Unix.file_descr * sockaddr
accept fd
accepts a single connection
val connect : ?timeout_ms:int -> Unix.file_descr -> sockaddr -> unit
connect ?timeout_ms fd sockaddr
connects to a remote partition. Since the raw socket 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)