[sctp-dev] Using SctpMultiChannel
Johan Lübcke
johan.lubcke at symsoft.com
Thu Aug 11 05:25:12 PDT 2011
I had the same problem and I ended up doing a "send" call to the remote address. That way I get a AssociationChangeNotification with an association id that can be passed to "branch".
This seems a bit awkward but it works. (Especially since I need to have some actual data to send already when I want to connect to the remote side). Doing a "connect" would have been more natural.
If there is a better way I am equally interested!
/ Johan
11 aug 2011 kl. 14.03 skrev Chris:
> Hi,
>
> I'm trying to use SctpMultiChannel to get multiple associations on the same socket (same local port/IP but different remote endpoints), but I can't for the life of me figure out the API (http://openjdk.java.net/projects/sctp/javadoc/com/sun/nio/sctp/SctpMultiChannel.html)
>
> I get that I should do SctpMultiChannel.open() to create an instance and that I should bind it to my local address(es).
> But then I want to use something like connect() (like on a regular SctpChannel), but there's no such method, or anything similar as far as I can see. And the only way to get a regular SctpChannel out of this class seems to be branch(Accociation), but that's not either an option since I need to have an association to call that.
>
> What am I missing?
>
> TIA,
> Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 881 bytes
Desc: =?iso-8859-1?Q?Detta_=E4r_en_digitalt_signerad_del_av_brevet?=
Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20110811/ad720f9c/attachment.bin
More information about the sctp-dev
mailing list