write
Packetise bytes into one or more ST_DATA packets and send them, blocking on the congestion+flow window so bytes-in-flight never exceed min(cwnd, peerWindow). Faithful to send_pkt() chunking (payload_size = min(write_buffer, mtu - header)) with the discovered mss, LEDBAT-driven window, and Nagle coalescing.