]> git.scottworley.com Git - tattlekey/blame - client/sends.c
client: Start moving pending-sends logic out to sends.c
[tattlekey] / client / sends.c
CommitLineData
2dcbb2a0
SW
1#include "sends.h"
2
3uint32_t next_send(send_t *s) {
4 return s->timestamp + (1 << s->send_count) - 1;
5}
6
7bool next_send_less_than(void *user_data, pheap_node_id_t a,
8 pheap_node_id_t b) {
9 send_t *sends = (send_t *)user_data;
10 return next_send(&sends[a]) < next_send(&sends[b]);
11}