Re: Problem code multi-streaming

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

 



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.
--
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