package mirage
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
The MirageOS library operating system
Install
dune-project
Dependency
Authors
Maintainers
Sources
mirage-4.10.5.tbz
sha256=c0b2deb8f9cfec44f9dbc256a18b50944f2aa8fcba84aef3165abebd23476e0c
sha512=e354f1cb4d12b424c22b9add0851a8750fe09f095ca97f0ec0360b18f7c69db60b155fdd18b0d7a6cea3432e63f20e4695a5bccaac3fc34588348e4311baa1c5
doc/src/mirage.devices/udp.ml.html
Source file udp.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36module Action = Functoria.Action open Functoria.DSL type 'a udp = UDP type udpv4v6 = Ip.v4v6 udp let udp = Functoria.Type.Type UDP let udpv4v6 : udpv4v6 typ = udp (* Value restriction ... *) let udp_direct_func () = let packages = [ Ip.right_tcpip_library [ "udp" ] ] in let connect _ modname = function | [ ip ] -> code ~pos:__POS__ "%s.connect %s" modname ip | _ -> Misc.connect_err "udp" 1 in impl ~packages ~connect "Udp.Make" (Ip.ip @-> udp) let direct_udp ip = udp_direct_func () $ ip let udpv4v6_socket_conf ~ipv4_only ~ipv6_only ipv4_key ipv6_key = let v = Runtime_arg.v in let runtime_args = [ v ipv4_only; v ipv6_only; v ipv4_key; v ipv6_key ] in let packages = [ Ip.right_tcpip_library [ "udpv4v6-socket" ] ] in let configure i = match Misc.get_target i with | `Unix | `MacOSX -> Action.ok () | _ -> Action.error "UDPv4v6 socket not supported on non-UNIX targets." in let connect _ modname = function | [ ipv4_only; ipv6_only; ipv4_key; ipv6_key ] -> code ~pos:__POS__ "%s.connect ~ipv4_only:%s ~ipv6_only:%s %s %s" modname ipv4_only ipv6_only ipv4_key ipv6_key | _ -> Misc.connect_err "udpv4v6_socket_conf" 4 in impl ~runtime_args ~packages ~configure ~connect "Udpv4v6_socket" udpv4v6
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>