> Is multicast supported in kilim?
>
No, there is no multicast support in kilim/nio.
As you observed, I use SocketChannel, and I believe one should be able
to get away with using SelectableChannel, in order to accomodate both
DatagramChannel and SocketChannel. If you do this refactoring, I'd be
immensely grateful and can roll it in.
--sriram.
The basic issue is that you need to receive multicast sockets and work
with Kilim tasks. Most likely you have just the single multicast
socket, one reasonable alternative -- at least for now -- is to have
a separate thread blocked on that multicast socket? Whenever you
receive a packet, put it in some task's mailbox and return to blocking
on that socket.
--sriram.
From a _very_ cursory look at the source, I'm puzzled by one
conspicuous omission: there is no import of DatagramChannel.
Perhaps that is the key to the solution.
See also Alan Bateman's blog entry on this topic:
http://blogs.sun.com/alanb/entry/multicasting_with_nio
--sriram.
> I just submitted a patch through github, but not very sure if that's
> the formal way (I can't find something e.g. issue tracking to create
> an issue and add patch as attachment.)
>
> Please let me know if ant issue relates.
thanks much. I'll take a look at the patch.