package charrua-client
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4a250716f81ff724c2461ed2baa341f088cd706ab2bb6097348379433069e2cb
sha512=392bbf6620e1a62e333c7b44b5df31740185db05874eab7edffaaa0e4adb63960ef26e0073298784d63ad5f105fe3d9cced035a10a8a605c8fbede5604c5f65e
doc/charrua-client.mirage/Dhcp_ipv4/Make/Net/index.html
Module Make.NetSource
The type for network interface errors.
The type representing the internal state of the network device.
Disconnect from the network device. While this might take some time to complete, it can never result in an error.
write net ~size fill allocates a buffer of length size, where size must not exceed the interface maximum packet size (mtu plus Ethernet header). The allocated buffer is zeroed and passed to the fill function which returns the payload length, which may not exceed the length of the buffer. When fill returns, a sub buffer is put on the wire: the allocated buffer from index 0 to the returned length.
listen ~header_size net fn waits for a packet with size at most header_size + mtu on the network device. When a packet is received, an asynchronous task is created in which fn packet is called. The ownership of packet is transferred to fn. The function can be stopped by calling disconnect.
mtu net is the Maximum Transmission Unit of net. This excludes the Ethernet header.
Obtain the most recent snapshot of the interface statistics.