This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Working with the EK-TM4C1294XL board and based the code off the UDP Echo example. The echo example places the unit in "Server" mode where it pends on an incoming message and echo outs.
The problem I am having is inverting this and transmitting first and waiting for a reply. I'm able to perform this simple task on Cygwin with standard Socket calls, and updated the example code to meet the same criteria.
The socket is not receiving data back from the server. (I verified the server app echo is operational).
I've tried
sendto(lSocket, (char *)mybuffer, strlen(mybuffer), 0, (struct sockaddr *)&sLocalAddr, sizeof(sLocalAddr));
nbytes = recvncfrom(lSocket, (void **)&buffer, MSG_WAITALL,(struct sockaddr *)&sLocalAddr, &addrlen, &hBuffer);
and with
nbytes = recvnc(Socket,(void**)&buffer,MSG_WAITALL,&hBuffer);
Not sure what would be unique to cause the problem
Carl,
Sorry for the delayed response. I'm working on putting together a working example and will get back to you.
Thanks,
Moses
Carl,
Here's an example udp client application to help you. You can test it with the udpEcho example as the server.
Let me know if this helps.
Moses
Hello Moses,
Thanks, I invoked your function in my project and was receiving the responses. Now I have to see what I was doing different.
Carl