/* TODO: optimize this handle all new incoming connections. */ static void handle_incomings(void) { int income; while (1) { income = incoming_connection(); if(income == -1 || new_incoming(income) ) break; } }
/* Handle all new incoming connections. * TODO: Optimize this. */ static void handle_incomings(Net_Crypto *c) { int income; while (1) { income = incoming_connection(c->lossless_udp); if (income == -1 || new_incoming(c, income) ) break; } }