package luv
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=769f6a08862a49d44e20043e270ef7177bcc7bb8679037bc06065622634c56c0
md5=57b2063e489cbbcfea3a238ced0dd297
doc/luv/Luv/Handle/index.html
Module Luv.Handle
Source
Handles.
See Handles in the user guide and uv_handle_t
— Base handle in libuv.
In libuv, uv_handle_t
is a sort of “abstract” base type that supports functions common to all handles. All concrete handles are of more specific types, such as uv_udp_t
.
Correspondingly, this module, Luv.Handle
, offers functions that work on all handles, _ Luv.Handle.t
. Other modules define specific handle types, such as Luv.UDP.t
, which is defined as [`UDP] Luv.Handle.t
.
The full list of concrete handle types:
Luv.Async.t
Luv.Check.t
Luv.FS_event.t
Luv.FS_poll.t
Luv.Idle.t
Luv.Pipe.t
Luv.Poll.t
Luv.Prepare.t
Luv.Process.t
Luv.Signal.t
Luv.TCP.t
Luv.Timer.t
Luv.TTY.t
Luv.UDP.t
Basics
Binds uv_handle_t
.
There is no way to directly create values of this type through this module, Luv.Handle
. See other modules, which bind specific handle types, such as Luv.UDP
.
Binds uv_is_active
.
Binds uv_is_closing
.
Binds uv_has_ref
.
Binds uv_get_loop
.
I/O properties
Gets the size of the OS send buffer for a socket.
Calls uv_send_buffer_size
with *value
set to zero.
Gets the size of the OS receive buffer for a socket.
Calls uv_recv_buffer_size
with *value
set to zero.
val set_send_buffer_size :
[< `Stream of [< `TCP | `Pipe ] | `UDP ] t ->
int ->
(unit, Error.t) result
Sets the size of the OS send buffer for a socket.
Calls uv_send_buffer_size
with *value
set to the given value.
val set_recv_buffer_size :
[< `Stream of [< `TCP | `Pipe ] | `UDP ] t ->
int ->
(unit, Error.t) result
Sets the size of the OS receive buffer for a socket.
Calls uv_recv_buffer_size
with *value
set to the given value.