package hvsock
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Socket.MakeSource
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.Smodule Socket_family : Hvsock.Af_common.SSignature
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