store number of sentBytes returned from UDPSocket

This commit is contained in:
Stephen Birarda 2013-02-13 14:54:39 -08:00
parent a725db5bd7
commit 5ced381097

View file

@ -195,7 +195,7 @@ void *sendBufferThread(void *args)
}
audioSocket->send(agents[a].address, agents[a].port, (void *) clientMix, BUFFER_LENGTH_BYTES);
sentBytes = audioSocket->send(agents[a].address, agents[a].port, (void *) clientMix, BUFFER_LENGTH_BYTES);
if (sentBytes < BUFFER_LENGTH_BYTES) {
std::cout << "Error sending mix packet! " << sentBytes << strerror(errno) << "\n";