Forum Discussion
Altera_Forum
Honored Contributor
16 years agowon't able to read on UDP "recvfrom"
Dear friend i am trying to read an ethernet port using UDP (Code below), first read operation sucessfully return the read value (which is no of packet to be read) as soon as i enter in to do w...
Altera_Forum
Honored Contributor
16 years agoIn your error checking, you break from the loop before printing the error message. Do it the other way round and see if you get any error message:
if(retcode <= 0) { printf("recv call failed"); break;}