OK, I am slowly finding my way around here... I now see how the APR
polling and the NIO selector functionalities are required for the
asynchronous aspect of MINA. So that leaves me with APR.
long ra = Address.get(Socket.APR_REMOTE, handle) should give me a
"pointer" to the remote address if i understand correctly...
I am also not so sure about what setInterestedInWrite(AprSession
session, boolean interested) in the DatagramAcceptor class does. In the
NIO version you set the SelectionKey's interestedOps to include write.
Why not use session.setInterestedInWrite(interested)? Do I have to set a
flag for that session's socket somewhere in the pollset? I haven't found
anything in the jni APR stuff that would let me do that...
Cheers,
Lorenz