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.4.tbz
sha256=f5eb059835524fe165f487d15d790c33c56b2fcdd08fa475cd41e5b051f9b47e
sha512=56256cf7d0b0647a223a78c90593f9a172f5a9f438123b633c47b47b95a2ec709111bd718d9ffa077aa1da8578671215cd8b80f2c79b70173b5cf277ad5a663a
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)"
>