package tcpip

  1. Overview
  2. Docs
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/tcpip.tcp/Tcp/Segment/Rx/index.html

Module Segment.RxSource

Parameters

module T : Mirage_time.S
module ACK : Ack.M

Signature

Sourcetype segment = {
  1. header : Tcp_packet.t;
  2. payload : Cstruct.t;
}

Individual received TCP segment

Sourceval pp_segment : Format.formatter -> segment -> unit
Sourcetype t

Queue of receive segments

Sourceval pp : Format.formatter -> t -> unit
Sourceval create : rx_data:(Cstruct.t list option * Sequence.t option) Lwt_mvar.t -> ack:ACK.t -> wnd:Window.t -> state:State.t -> tx_ack:(Sequence.t * int) Lwt_mvar.t -> t
Sourceval is_empty : t -> bool
Sourceval input : t -> segment -> unit Lwt.t

Given the current receive queue and an incoming packet, update the window, extract any ready segments into the user receive queue, and signal any acks to the Tx queue

OCaml

Innovation. Community. Security.