val return : 'a -> 'a tval open_socket : ?config:config -> inet_addr -> int -> file_descr tval close_socket : file_descr -> unit tval read : file_descr -> Stdlib.Bytes.t -> int -> int -> int tval write : file_descr -> Stdlib.Bytes.t -> int -> int -> int tval read_with_timeout : timeout:int -> file_descr -> Stdlib.Bytes.t -> int -> int -> int option tread_with_timeout ~timeout fd buf off len returns Some n if it could read n bytes into buf (slice off,...,off+len-1), or None if nothing was read before timeout seconds.
List of IPs that correspond to the given hostname (or an empty list if none is found)
val sleep : int -> unit tCurrent wall time (used for timeouts). Typically, Unix.time.
- since
- NEXT_RELEASE