package hvsock
Bindings for Hyper-V AF_VSOCK
Install
Dune Dependency
Authors
Maintainers
Sources
2.0.0.tar.gz
sha256=e94afeaa1a8bdb8ea7e5b30ffc8ed476e5999c668a48e8c8e49a6a97ceda6cc9
md5=b5512ca72cbbd01d6e756264d6114020
doc/hvsock.lwt/Hvsock_lwt/Socket/Make/index.html
Module Socket.Make
Source
Create a Lwt socket from a
- source of timing
- a means of running blocking calls in full threads
- a means of creating sockets
This is useful because some of the hypervisor sockets do not support select() or other methods of asynchronous I/O and we must therefore run the calls in background threads.
Parameters
module Time : Mirage_time_lwt.S
module Socket_family : Hvsock.Af_common.S
Signature
A socket which supports I/O via Lwt
A socket address
A low-level file descriptor
to_fd t
returns the wrapped file descriptor. Note this only supports blocking I/O
connect ?timeout_ms t sockaddr
connects to a remote partition
read t buf
reads as many bytes as available into buf
returning the number of bytes read.
write t buf
writes as many bytes from buf
to t
as will currently fit inside t
's internal buffer, and return the number of bytes written
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page