package mirage-types
A connection between endpoints.
type 'a io = 'a Lwt.t
A potentially blocking I/O operation
type buffer = Cstruct.t
Abstract type for a memory buffer that may not be page aligned.
read flow
will block until it either successfully reads a segment of data from the current flow, receives an Eof
signifying that the connection is now closed, or an Error
.
write flow buffer
will block until the contents of buffer
are transmitted to the remote endpoint. The contents may be transmitted in separate packets, depending on the underlying transport. The result `Ok ()
indicates success, `Eof
indicates that the connection is now closed and `Error
indicates some other error.
writev flow buffers
will block until the contents of buffer list
are all successfully transmitted to the remote endpoint. The result `Ok ()
indicates success, `Eof
indicates that the connection is now closed and `Error
indicates some other error.