Beispiel #1
0
/* Main loop. */
void do_net_crypto(Net_Crypto *c)
{
    do_lossless_udp(c->lossless_udp);
    handle_incomings(c);
    receive_crypto(c);
    kill_timedout(c);
}
Beispiel #2
0
/* main loop */
void doNetCrypto()
{
    /* TODO:check if friend requests were sent correctly
       handle new incoming connections
       handle friend requests */
    handle_incomings();
    receive_crypto();
    killTimedout();
}