Wire.Makemodule Ip : Tcpip.Ip.Stype error = Tcpip.Ip.errorThe type for TCP wire errors.
val pp : t Fmt.tpp is the pretty-printer for TCP wire values.
val dst_port : t -> intRemote TCP port
val src_port : t -> intLocal TCP port
v ~src ~src_port ~dst ~dst_port is the wire value v with the corresponding local and remote IP/TCP parameters.
val xmit :
ip:Ip.t ->
t ->
?rst:bool ->
?syn:bool ->
?fin:bool ->
?psh:bool ->
rx_ack:Sequence.t option ->
seq:Sequence.t ->
window:int ->
options:Options.t list ->
Cstruct.t ->
(unit, error) Stdlib.result Lwt.txmit emits a TCP packet over the network.