Re: Problem code multi-streaming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 09 Jun 2011 10:09:33 +0700, Nguyán PhÆác ThÃnh wrote:

 ht22.pt> I have some code demo using multi-streaming, but it is not run right.I 
 ht22.pt> attach my code send file in this mail. I using this code from sctp_test, 
 ht22.pt> but i don't know why it error.

 ht22.pt> I use sinfo->sinfo_stream = 1; and when send one chunk I change stream :

 ht22.pt>   if(stream==1) stream=2;
 ht22.pt>   if(stream==2)  stream=1;

 ht22.pt> But capture packet with Wireshark I see SID is always 1, I send packet 
 ht22.pt> is order, using multi-homing.

You also ignore return code from sendmsg in your send loop - it could
give you a clue about possible problems. For example, did you set the
correct number of outgoing streams? Keep in mind that 2 means 2
streams: 0 and 1, not stream 1 and 2.

max

--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux