Send PING every half second

This commit is contained in:
Cameron Gutman 2015-01-09 00:02:44 -05:00
parent 9143994588
commit 4afa97d954
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ static void UdpPingThreadProc(void *context) {
saddr.sin_port = htons(RTP_PORT);
memcpy(&saddr.sin_addr, &remoteHost, sizeof(remoteHost));
/* Send PING every 100 milliseconds */
/* Send PING every 500 milliseconds */
while (!PltIsThreadInterrupted(&udpPingThread)) {
err = sendto(rtpSocket, pingData, sizeof(pingData), 0, (struct sockaddr*)&saddr, sizeof(saddr));
if (err != sizeof(pingData)) {
@ -68,7 +68,7 @@ static void UdpPingThreadProc(void *context) {
return;
}
PltSleepMs(100);
PltSleepMs(500);
}
}

View File

@ -57,7 +57,7 @@ static void UdpPingThreadProc(void *context) {
return;
}
PltSleepMs(100);
PltSleepMs(500);
}
}