[sctp-dev] Java API for SCTP

David M. Lloyd david.lloyd at redhat.com
Mon Nov 24 10:32:26 PST 2008


On 11/24/2008 12:16 PM, Christopher Hegarty - Sun Microsystems Ireland wrote:
> Hi All,
> 
> I know that there have been a few mails on this alias relating to SCTP 
> support in Java. An OpenJDK project has been sponsored and setup to 
> develop an API for SCTP [1] and a corresponding OpenJDK prototype. I 
> would encourage anyone interested to take a look and help with the API 
> design and implementation.

OK, here's a couple first-glance comments...

1. The *Channel classes are missing scatter/gather support.  This is 
important in scenarios where (for example) a message must be composed, but 
the complete message size is unknown until it has been fully assembled. 
One allocates additional buffers as needed, rather than allocating a larger 
buffer and copying data from the smaller buffer to the larger buffer each 
time space is exhausted.  Admittedly not quite as important is scatter 
support, but maybe still useful in a similar scenario - allocate 10 
buffers, read() only fills 4, so you pass the next 6 on to the next read() 
operation.

2. The notion of the Notification/NotificationHandler system being specific 
to SCTP seems a little weird.  Are these notifications synchronous or 
asynchronous?

- DML



More information about the sctp-dev mailing list