Function

nw_tcp_options_set_enable_fast_open

Enables TCP Fast Open on a connection.

Declaration

void nw_tcp_options_set_enable_fast_open(nw_protocol_options_t options, bool enable_fast_open);

Discussion

If TCP Fast Open is enabled and TLS is running on top of TCP, the TLS handshake will automatically be used as the TCP early data. If there is no protocol running on top of TCP, you should also enable fast open on the connection parameters and send idempotent data.

See Also

Customizing TCP Options

nw_tcp_options_set_maximum_segment_size

Sets TCP's maximum segment size in bytes.

nw_tcp_options_set_no_delay

Disables Nagle's algorithm for TCP.

nw_tcp_options_set_no_options

Sets TCP into no-options mode.

nw_tcp_options_set_no_push

Sets TCP into no-push mode.

nw_tcp_options_set_retransmit_fin_drop

Causes TCP to drop its connection after not receiving an ACK after a FIN.

nw_tcp_options_set_disable_ack_stretching

Disables TCP acknowledgment stretching.

nw_tcp_options_set_disable_ecn

Disables negotiation of Explicit Congestion Notification markings.