package tcpip
OCaml TCP/IP networking stack, used in MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
tcpip-8.0.2.tbz
sha256=d452e23f4e62c8b32c977f742e72c50fe673b82e23dc80b29d8263be764d2c72
sha512=9a4aeb5c7ec0392524d1d261026e5de047dec09054f2dca63d9743aed1d27ccfd655ae693554091b4ef7d9eabfeef218e71e8bf13ea8304ebedd8e8a7d4f484a
doc/tcpip.udp/Udp/Make/index.html
Module Udp.Make
Source
Parameters
module IP : Tcpip.Ip.S
module R : Mirage_random.S
Signature
include Tcpip.Udp.S with type ipaddr = IP.ipaddr
The type for UDP errors.
The type representing the internal state of the UDP layer.
Disconnect from the UDP layer. While this might take some time to complete, it can never result in an error.
The type for callback functions that adds the UDP metadata for src
and dst
IP addresses, the src_port
of the connection and the buffer
payload of the datagram.
listen t ~port callback
executes callback
for each packet received on port
.
input t
demultiplexes incoming datagrams based on their destination port.
Source
val write :
?src:ipaddr ->
?src_port:int ->
?ttl:int ->
dst:ipaddr ->
dst_port:int ->
t ->
Cstruct.t ->
(unit, error) result Lwt.t
write ~src ~src_port ~ttl ~dst ~dst_port udp data
is a task that writes data
from an optional src
and src_port
to a dst
and dst_port
IP address pair. An optional time-to-live (ttl
) is passed through to the IP layer.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page