Selector API [was Re: Java API for SCTP]

Marc Petit-Huguenin marc at petit-huguenin.org
Thu Apr 30 12:02:40 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alan Bateman wrote:
> Marc Petit-Huguenin wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Alan Bateman wrote:
>> [...]
>>  
>>> As regards non-blocking - yes, it is integrated with the
>>> multiplexing/Selector API. For now the implementation is making use of
>>> an internal API for this. In the medium term we hope to define a
>>> provider-specific API to allow other selectable channel types to
>>> register with the Selector.
>>>     
>>
>> What are the plans for this API?
>>   
> The SCTP API is in jdk7 since b56 and as its implementation is in the
> sun.nio.ch package it means it can use the internal interface to
> register without requiring a public/supported interface. I would still
> like to introduce a supported interface to allow other channel
> implementations integrate, it just hadn't had sufficient priority to
> bring it to the finish line. So can you say how you would use such an
> interface?

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.

Thanks.

- --
Marc Petit-Huguenin
Home: marc at petit-huguenin.org
Work: petithug at acm.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkn59dAACgkQ9RoMZyVa61cfgACfXFwfwRkOIpejyiKgTbK0Ccyr
unEAoKeFjaaHiQ7O6+cl+To11Nf+SfJi
=CxkI
-----END PGP SIGNATURE-----



More information about the nio-discuss mailing list