package tcpip
OCaml TCP/IP networking stack, used in MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
tcpip-9.0.1.tbz
sha256=fac07ce986811cf5e3d71373d92b631cc30fbef548d6da21b0917212dcf90b03
sha512=01de13f560d58b1524c39619e4e4cb6ebbf069155eb43d0f264aa12b00e0cc8c39792719e3ca46585dd596b692b8e1e3f8c132f005ed9e2d77747c0c158bf4d9
doc/tcpip.udp/Udp_packet/Marshal/index.html
Module Udp_packet.Marshal
Source
Source
val into_cstruct :
pseudoheader:Cstruct.t ->
payload:Cstruct.t ->
t ->
Cstruct.t ->
(unit, error) result
into_cstruct ~pseudoheader ~payload t buf
attempts to assemble a UDP header in buf
with t.src_port
and t.dst_port
set, along with the correct length and checksum. It does not write pseudoheader
or payload
into the buffer, but requires them to calculate the correct checksum.
make_cstruct ~pseudoheader ~payload t
allocates, fills, and and returns a buffer representing the UDP header corresponding to t
. make_cstruct
will allocate 8 bytes for the UDP header. payload
and pseudoheader
are not directly represented in the output, and are required for correct computation of the UDP checksum only. The checksum will be properly set to reflect the pseudoheader, header, and payload.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>