package hvsock
Bindings for Hyper-V AF_VSOCK
Install
dune-project
Dependency
Authors
Maintainers
Sources
hvsock-3.1.0.tbz
sha256=c3dc439a50b2b83dc584b20726a1311ca52187792613e9cf441c39da51ef7407
sha512=cd631f190c63dabd8151e51715d048c828aa9a8207661a6b06c5b7754de030ebec81f06d6c545afc3b7fc2637466ebe4ac5f205e4cbad672591f79f9c5366242
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 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