Socket.MakeSourceCreate a Lwt socket from a
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.
module Time : Mirage_time.Smodule Socket_family : Hvsock.Af_common.SA 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