mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Updated initMessenger
This commit is contained in:
parent
448d0124cd
commit
951dbc1258
|
@ -517,6 +517,11 @@ int initMessenger(void)
|
||||||
if(init_networking(ip,PORT) == -1)
|
if(init_networking(ip,PORT) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
DHT_init();
|
||||||
|
LosslessUDP_init();
|
||||||
|
friendreq_init();
|
||||||
|
LANdiscovery_init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -684,7 +689,7 @@ static void LANdiscovery(void)
|
||||||
void doMessenger(void)
|
void doMessenger(void)
|
||||||
{
|
{
|
||||||
networking_poll();
|
networking_poll();
|
||||||
|
|
||||||
doDHT();
|
doDHT();
|
||||||
doLossless_UDP();
|
doLossless_UDP();
|
||||||
doNetCrypto();
|
doNetCrypto();
|
||||||
|
@ -693,14 +698,6 @@ void doMessenger(void)
|
||||||
LANdiscovery();
|
LANdiscovery();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Messenger_init(void)
|
|
||||||
{
|
|
||||||
DHT_init();
|
|
||||||
LosslessUDP_init();
|
|
||||||
friendreq_init();
|
|
||||||
LANdiscovery_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* returns the size of the messenger data (for saving) */
|
/* returns the size of the messenger data (for saving) */
|
||||||
uint32_t Messenger_size(void)
|
uint32_t Messenger_size(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user