Function

nw_tcp_options_set_keepalive_interval(_:_:)

Sets the number of seconds that TCP waits between sending keepalive probes.

Declaration

func nw_tcp_options_set_keepalive_interval(_ options: nw_protocol_options_t, _ keepalive_interval: UInt32)

See Also

Configuring Keepalives

func nw_tcp_options_set_keepalive_idle_time(nw_protocol_options_t, UInt32)

Sets the number of seconds of idleness that TCP waits before sending keepalive probes.

func nw_tcp_options_set_keepalive_count(nw_protocol_options_t, UInt32)

Sets the number of keepalive probes that TCP sends before terminating the connection.