package tcpip

  1. Overview
  2. Docs

doc/tcpip.udp/Udp_packet/Unmarshal/index.html

Module Udp_packet.UnmarshalSource

Sourcetype error = string
Sourceval of_cstruct : Cstruct.t -> (t * Cstruct.t, error) result

of_cstruct buf attempts to interpret buf as a UDP header. If successful, it returns Ok (header, payload), although payload may be an empty Cstruct.t .

OCaml

Innovation. Community. Security.