tcpip.tcp
Tcp.State
tcpip
tcpip.checksum
tcpip.icmpv4
tcpip.icmpv4-socket
tcpip.ipv4
tcpip.ipv6
tcpip.stack-direct
tcpip.stack-socket
tcpip.tcp_socket_options
tcpip.tcpv4v6-socket
tcpip.udp
tcpip.udpv4v6-socket
type action =
| Passive_open
| Recv_rst
| Recv_synack of Sequence.t
| Recv_ack of Sequence.t
| Recv_fin
| Send_syn of Sequence.t
| Send_synack of Sequence.t
| Send_rst
| Send_fin of Sequence.t
| Timeout
val pp_action : Format.formatter -> action -> unit
type tcpstate =
| Closed
| Listen
| Syn_rcvd of Sequence.t
| Syn_sent of Sequence.t
| Established
| Close_wait
| Last_ack of Sequence.t
| Fin_wait_1 of Sequence.t
| Fin_wait_2 of int
| Closing of Sequence.t
| Time_wait
| Reset
val pp_tcpstate : Format.formatter -> tcpstate -> unit
type close_cb = unit -> unit
type t
val state : t -> tcpstate
val t : id:int -> on_close:close_cb -> t
val on_close : t -> unit
val pp : Format.formatter -> t -> unit
val fin_wait_2_time : int64
val time_wait_time : int64
val finwait2timer : t -> int -> int64 -> unit Lwt.t
val timewait : t -> int64 -> unit Lwt.t
val tick : t -> action -> unit