PollDtlsTimer.nextTimeoutMs

int nextTimeoutMs()

Returns milliseconds until the next timeout, or -1 for infinite.

Use this as the timeout parameter for poll().

Returns

Milliseconds until deadline, 0 if already expired,

-1 if no timeout is scheduled.