package charrua-client
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=1f6f7c1211a45ebbbd56a78b12fdbceaa98efae97ac3bd6f4855da47a3a3ac34
    
    
  sha512=6ea3cb92efca7c33ee9aa1411223bec9045ece9939657594ebc47ae93408c4d87e8b40812751fc86555061d91ccd338b3fbcfe6059e1dd770303329b5e527a96
    
    
  doc/charrua-client.mirage/Dhcp_ipv4/Make/argument-4-Network/index.html
Parameter Make.Network
The type for network interface errors.
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.
val mtu : t -> intmtu net is the Maximum Transmission Unit of net. This excludes the Ethernet header.
val get_stats_counters : t -> Mirage_net.statsObtain the most recent snapshot of the interface statistics.
val reset_stats_counters : t -> unitReset the statistics associated with this interface to their defaults.