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.

NDK UDP Client Issue

Other Parts Discussed in Thread: EK-TM4C1294XL

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