void do_onion_client(Onion_Client *onion_c) { uint32_t i; if (onion_c->last_run == unix_time()) return; do_announce(onion_c); for (i = 0; i < onion_c->num_friends; ++i) { do_friend(onion_c, i); } onion_c->last_run = unix_time(); }
void do_onion_client(Onion_Client *onion_c) { uint32_t i; if (onion_c->last_run == unix_time()) return; do_announce(onion_c); for (i = 0; i < onion_c->num_friends; ++i) { do_friend(onion_c, i); cleanup_friend(onion_c, i); onion_c->friends_list[i].ping_nodes_sent_second = 0; } onion_c->ping_nodes_sent_second = 0; onion_c->last_run = unix_time(); }
void do_onion_client(Onion_Client *onion_c) { unsigned int i; if (onion_c->last_run == unix_time()) return; for (i = 0; i < NODE_POPULATE_TIMES; ++i) populate_path_nodes(onion_c); do_announce(onion_c); if (onion_isconnected(onion_c)) { for (i = 0; i < onion_c->num_friends; ++i) { do_friend(onion_c, i); } } onion_c->last_run = unix_time(); }