Selector API [was Re: Java API for SCTP]
Alan Bateman
Alan.Bateman at Sun.COM
Sat May 2 04:14:32 PDT 2009
Marc Petit-Huguenin wrote:
> I am evaluating the difficulties in implementing a DCCP channel that
> can register on a selector also used by SCTP, UDP and/or TCP channels.
>
I'm not familiar with how the socket API is used for DCCP. Would the
usage be closer to Server/SocketChannel than DatagramChannel (although
you are sending datagrams rather than a stream)? Another potential way
to integrate is not to develop a new channel type but to use the
existing APIs. A while back I prototyped changes that would allow the
protocol be specified when creating the channel. Here that might be
SocketChannel.open(Protocols.getByName("dccp")) and the protocol is then
mapped to the domain and protocol.
-Alan.
More information about the nio-discuss
mailing list