Segment.Tx
Pre-transmission queue
type ('a, 'b) xmit =
flags:tx_flags ->
wnd:Window.t ->
options:Options.t list ->
seq:Sequence.t ->
Cstruct.t ->
('a, 'b) Stdlib.result Lwt.t
val create :
xmit:('a, 'b) xmit ->
wnd:Window.t ->
state:State.t ->
rx_ack:Sequence.t Lwt_mvar.t ->
tx_ack:(Sequence.t * int) Lwt_mvar.t ->
tx_wnd_update:int Lwt_mvar.t ->
t * unit Lwt.t
Queue a segment for transmission. May block if:
The transmitter should check that the segment size will not be greater than the transmit window.