Selector API [was Re: Java API for SCTP]
Marc Petit-Huguenin
marc at petit-huguenin.org
Sat May 2 08:29:33 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alan Bateman wrote:
> 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)?
DCCP would be closer to ServerChannel/SocketServerChannel as DCCP
sockets use the same connect/accept mechanism. But after this it
would be closer to DatagramChannel for sending/receiving.
> 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.
>
- --
Marc Petit-Huguenin
Home: marc at petit-huguenin.org
Work: petithug at acm.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkn8Zt0ACgkQ9RoMZyVa61c2mwCgkpbs+n3Fgrqfww0KN6KzqvCI
48kAoJdJOol4cBgAWIkJIyMU6j4svcz7
=eC5+
-----END PGP SIGNATURE-----
More information about the nio-discuss
mailing list