fastOpenAllowed(_:)
Configure TCP to enable TCP Fast Open (TFO).
Declaration
func fastOpenAllowed(_ allowed: Bool) -> TCPParameters
- allowed:
True to allow TFO, false otherwise.
Discussion
This may take effect even when TCP is not the top-level protocol in the protocol stack. For example, if TLS is running over TCP, the Client Hello message may be sent as fast open data.
If TCP is the top-level protocol in the stack (the one the application directly interacts with), TFO will be disabled unless the application indicated that it will provide its own fast open data by calling NWParameters.allowFastOpen.