X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/38d971ac5039ae385ceed19e9f02722b60913f15..ff379463e38b1cebd43d5c2ab8a0a0ae8e7a9b53:/client/tattlekey.c?ds=inline diff --git a/client/tattlekey.c b/client/tattlekey.c index 3a1f7b7..9e7b4b5 100644 --- a/client/tattlekey.c +++ b/client/tattlekey.c @@ -42,7 +42,11 @@ int main() { while (1) { char _; queue_remove_blocking(&queue, &_); - send_report(seq++, 0); - signal(2, 100); + seq++; + for (int i = 0; i < resend_count; i++) { + send_report(seq, i); + signal(i == 0 ? 2 : 1, 100); + sleep_ms(resend_interval_ms); + } } }