> I investigated possibility of implementing such behavior.
> Basically the main problem is that it's impossible (or I didn't find the
> way) to retrieve remote address on server side udp socket, until UDP packet
> is read.
you are right. need to wait for packet.
> Because datagramChannel.socket().getRemoteSocketAddress()
> returns null for server side Datagram channel. And only
> datagramChannel.receive(ByteBuffer) returns SocketAddress.
> So in case, if UDP packet will come to both channels
in most cases it will not. I think Linux and BSD are right, not sure about
windows, but it is unlikely that someone runs production server on windows
and nobody cares about performance hit for development system (most ppl develop on Windows, deploy on unix).