package tcpip
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml TCP/IP networking stack, used in MirageOS
Install
dune-project
Dependency
Authors
Maintainers
Sources
tcpip-8.0.0.tbz
sha256=36b4c156be16702ba4c6d781a2da8ba1462b22370d15570e1116056cbf025233
sha512=56a1aab616349152beff7d0a504db15dc3d0010cb36322ce06b7abb43bd9d1a6ec0daa23fd6632fcc758c89737ba48046bb591d4a70021e273b80e716b55c44f
doc/src/tcpip/tcp.ml.html
Source file tcp.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 36 37 38 39type error = [ `Timeout | `Refused] type write_error = [ error | Mirage_flow.write_error] let pp_error ppf = function | `Timeout -> Fmt.string ppf "connection attempt timed out" | `Refused -> Fmt.string ppf "connection attempt was refused" let pp_write_error ppf = function | #Mirage_flow.write_error as e -> Mirage_flow.pp_write_error ppf e | #error as e -> pp_error ppf e module Keepalive = struct type t = { after: Duration.t; interval: Duration.t; probes: int; } end module type S = sig type nonrec error = private [> error] type nonrec write_error = private [> write_error] type ipaddr type flow type t val disconnect : t -> unit Lwt.t include Mirage_flow.S with type flow := flow and type error := error and type write_error := write_error val dst: flow -> ipaddr * int val write_nodelay: flow -> Cstruct.t -> (unit, write_error) result Lwt.t val writev_nodelay: flow -> Cstruct.t list -> (unit, write_error) result Lwt.t val create_connection: ?keepalive:Keepalive.t -> t -> ipaddr * int -> (flow, error) result Lwt.t val listen : t -> port:int -> ?keepalive:Keepalive.t -> (flow -> unit Lwt.t) -> unit val unlisten : t -> port:int -> unit val input: t -> src:ipaddr -> dst:ipaddr -> Cstruct.t -> unit Lwt.t end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>