package charrua-client

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module Random : Mirage_random.S
module Time : Mirage_time.S
module Network : Mirage_net.S

Signature

type t = (Ipaddr.V4.Prefix.t * Ipaddr.V4.t option) Lwt_stream.t
val connect : ?requests:Dhcp_wire.option_code list -> Network.t -> t Lwt.t

connect ?requests net attempts to use net to obtain a valid DHCP lease containing the DHCP option codes listed in request. If request is not specified, connect uses the default values provided by the upstream Dhcp_client implementation, which are a small set useful in establishing ipv4 connectivity. connect does not time out; it will terminate on send/receive errors or when a lease is obtained.

OCaml

Innovation. Community. Security.