Contents

keepalive(idleTimeInSeconds:count:intervalInSeconds:)

Enable TCP keepalives.

Declaration

func keepalive(idleTimeInSeconds: UInt32, count: UInt32, intervalInSeconds: UInt32) -> TCP

Parameters

  • idleTimeInSeconds:

    The number of seconds of idleness to wait before keepalive probes are sent by TCP (TCP_KEEPALIVE).

  • count:

    The number of keepalive probes to send before terminating.

  • intervalInSeconds:

    The number of seconds of to wait before resending TCP keepalive probes (TCP_KEEPINTVL).