package hvsock
Bindings for Hyper-V AF_VSOCK
Install
Dune Dependency
Authors
Maintainers
Sources
hvsock-3.0.1.tbz
sha256=41659fb404dd3c7b694e7e5ab450df7af4240f4592b5b7c356d1598dbd32cac4
sha512=4d355c58a86630dfe77ae084d93f23f2666bc46b0161128d99f51db286d0e49afc4f8130596b513b850c601fad8029e2e6dfc40d50cd854bf330c280a654e164
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.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