setTimeout(_:timeoutMin:timeoutMax:)

    Sets the timeout parameters for a peer. The timeout parameters control how and when a peer will timeout from a failure to acknowledge reliable traffic. Timeout values are expressed in milliseconds.

    ENetPacketPeer.swift:390
    final func setTimeout(_ timeout: Int32, timeoutMin: Int32, timeoutMax: Int32)

    The timeout is a factor that, multiplied by a value based on the average round trip time, will determine the timeout limit for a reliable packet. When that limit is reached, the timeout will be doubled, and the peer will be disconnected if that limit has reached timeoutMin. The timeoutMax parameter, on the other hand, defines a fixed timeout for which any packet must be acknowledged or the peer will be dropped.

    Other members in extension

    Types

    Type members

    Instance members