I am currently developing an Android client application that needs to do non-blocking packet reception over UDP. Is there a way to set the DatagramSocket so that it doesn't block when receiving () it?
Basically, I am asking how to set the MSG_DONTWAIT flag for a DatagramSocket.
source
to share