have mixer use sockaddr when calling UDPSocket receive

This commit is contained in:
Stephen Birarda 2013-02-21 15:17:07 -08:00
parent 41691a8aae
commit c28ace9c15

View file

@ -282,7 +282,7 @@ int main(int argc, const char * argv[])
pthread_create(&sendBufferThread, NULL, sendBuffer, NULL);
while (true) {
if(audioSocket.receive(&agentAddress, packetData, &receivedBytes)) {
if(audioSocket.receive((sockaddr *)&agentAddress, packetData, &receivedBytes)) {
if (receivedBytes == BUFFER_LENGTH_BYTES) {
if (addAgent(&agentAddress, packetData)) {
std::cout << "Added agent: " <<