SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Multihoming example


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: Alvaro Neira <alvarito_neira AT hotmail.com>
  • Cc: sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] Multihoming example
  • Date: Thu, 7 Aug 2008 10:43:59 +0200
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Hi Alvaro,

I'm assuming that you are using the SCTP kernel implementation and not
the sctplib, which is the SCTP implementation this list provides help
for.

But in any case: If both hosts have multiple address, just bind both
sochets to INADDR_ANY (assuming IPv4) and use connect() or
sendto() depending on the style you are using (1to1 or 1tomany) and
it should work. SCTP will negotiate the other addresses and use them.

Best regards
Michael

On Aug 7, 2008, at 2:56 AM, Alvaro Neira wrote:

Hi.
I'm new to SCTP and I'm looking for a minimal SCTP multihoming code example using the Linux stack in C, that is, a simple client and server using multihoming with no other options.
Has any of you a piece of code like this or do you know where to find one?
I would like my test app to use ethernet and 3.5G (mobile high speed net HDSPA) at the same time.
Is it so simple like only passing an array of 2 struct sockaddr to the sctp_connectx() or sctp_sendmsg() or sctp_bindx() functions ??

Thanks in advance.
Any info will be really apreciated.
Best regards!

Alvaro Neira
Research Engineer
NIC Chile Labs

_______________________________________________
sctp-discussion mailing list
sctp-discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/sctp-discussion





Archive powered by MHonArc 2.6.19+.

Top of page