Hello! There is a Nexus 5 with Android 5.1 and there is a server on the sockets: https://gist.github.com/anonymous/5ae47fa60773dc6d023a
In another thread working with clients: https://gist.github.com/anonymous/7dffdbd4321c8cba41a3
So, when you try to send a response, an exception is thrown:
sendto failed: EBADF (Bad file number)
What is most surprising is that on Windows the similar code works correctly.
Has anyone encountered this problem?