From: Wei Yongjun <yjwei@cn.fujitsu.com>
To: linux-sctp@vger.kernel.org
Subject: Re: Problem code multi-streaming
Date: Thu, 09 Jun 2011 07:31:18 +0000 [thread overview]
Message-ID: <4DF076C6.408@cn.fujitsu.com> (raw)
In-Reply-To: <4DF0396D.50401@gmail.com>
I have some code demo using multi-streaming, but it is not run right.I attach my code send file in this mail. I using this code from sctp_test, but i don't know why it error.
> I use sinfo->sinfo_stream = 1; and when send one chunk I change stream :
>
> if(stream=1) stream=2;
> if(stream=2) stream=1;
The above code let stream always equal to 1.
if(stream=1)
stream=2;
else if(stream=2)
stream=1;
>
> But capture packet with Wireshark I see SID is always 1, I send packet is order, using multi-homing.
> All different functions run ok.I don't know why SID don't change.I read this darft of socket API SCTP in folder doc of LKSCTP, but I don't understand why I write code like sctp_test but sctp_test run ok.
prev parent reply other threads:[~2011-06-09 7:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-09 3:09 Problem code multi-streaming Nguyễn Phước Thành
2011-06-09 4:27 ` Max Matveev
2011-06-09 7:31 ` Wei Yongjun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DF076C6.408@cn.fujitsu.com \
--to=yjwei@cn.fujitsu.com \
--cc=linux-sctp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.