package charrua-client

  1. Overview
  2. Docs
DHCP client implementation

Install

Dune Dependency

Authors

Maintainers

Sources

charrua-1.6.0.tbz
sha256=1f6f7c1211a45ebbbd56a78b12fdbceaa98efae97ac3bd6f4855da47a3a3ac34
sha512=6ea3cb92efca7c33ee9aa1411223bec9045ece9939657594ebc47ae93408c4d87e8b40812751fc86555061d91ccd338b3fbcfe6059e1dd770303329b5e527a96

doc/charrua-client.lwt/Dhcp_client_lwt/Make/index.html

Module Dhcp_client_lwt.MakeSource

Parameters

module Net : Mirage_net.S

Signature

Sourcetype lease = Dhcp_wire.pkt
Sourceval connect : ?renew:bool -> ?xid:Cstruct.uint32 -> ?requests:Dhcp_wire.option_code list -> Net.t -> t Lwt.t

connect renew ~xid requests net starts a DHCP client communicating over the network interface net. The client will attempt to get a DHCP lease at least once, and will return any leases obtained in the stream returned by connect. If renew is true, which it is by default, the client will attempt to renew the lease according to the logic in RFC2131. If renew is false, the client will cancel its listener and end the stream once the first lease has been obtained.

OCaml

Innovation. Community. Security.