package tcpip

  1. Overview
  2. Docs
type action =
  1. | Passive_open
  2. | Recv_rst
  3. | Recv_synack of Sequence.t
  4. | Recv_ack of Sequence.t
  5. | Recv_fin
  6. | Recv_finack of Sequence.t
  7. | Send_syn of Sequence.t
  8. | Send_synack of Sequence.t
  9. | Send_rst
  10. | Send_fin of Sequence.t
  11. | Timeout
type tcpstates =
  1. | Closed
  2. | Listen
  3. | Syn_rcvd of Sequence.t
  4. | Syn_sent of Sequence.t
  5. | Established
  6. | Close_wait
  7. | Last_ack of Sequence.t
  8. | Fin_wait_1 of Sequence.t
  9. | Fin_wait_2 of int
  10. | Closing of Sequence.t
  11. | Time_wait
type close_cb = unit -> unit
type t = {
  1. on_close : close_cb;
  2. mutable state : tcpstates;
}
val state : t -> tcpstates
val t : on_close:close_cb -> t
val tcpstates_to_string : tcpstates -> string
module Make (Time : V1_LWT.TIME) : sig ... end
OCaml

Innovation. Community. Security.