Giter Club home page Giter Club logo

Comments (8)

tuexen avatar tuexen commented on July 17, 2024

What are you referring to? Absolute priorities? Relative priorities? We do currently support a
strict priority scheduler, but not with interleaving. A relative one will be available once support for I-DATA has been incorporated. This is currently under development. The API is specified in Socket API.

from usrsctp.

rsecchi avatar rsecchi commented on July 17, 2024

I guess the following line currently enables the strict priority:
usrsctp_sysctl_set_sctp_default_ss_module(SCTP_SS_PRIORITY);

but then I wanted to assign priorities to streams. I tried with:

sv.assoc_id = last_assoc_id;
sv.stream_value = 0;
sv.stream_id = 0;
rv = usrsctp_setsockopt(sk, IPPROTO_SCTP, SCTP_SS_VALUE, &sv, sizeof(sctp_stream_value));
CHECK(rv<0, "SCTP_SS_VALUE");

but the SCTP_SS_VALUE was not found

from usrsctp.

tuexen avatar tuexen commented on July 17, 2024

Can you provide a simple test programs which fails for you?
Please note that you can set the stream scheduler in the current code using the SCTP_PLUGGABLE_SS socket option.

from usrsctp.

tuexen avatar tuexen commented on July 17, 2024

Does adding

/* RS - Pluggable Stream Scheduling Socket option */
#define SCTP_PLUGGABLE_SS       0x00001203
#define SCTP_SS_VALUE           0x00001204

to usrsctp.h solve your problem?

from usrsctp.

rsecchi avatar rsecchi commented on July 17, 2024

It also says:

server.c:41:71: error: ‘sctp_stream_value’ undeclared (first use in this function)
rv = usrsctp_setsockopt(sk, IPPROTO_SCTP, SCTP_SS_VALUE, &sv, sizeof(sctp_stream_value));

from usrsctp.

rsecchi avatar rsecchi commented on July 17, 2024

Adding the struct as well, it appears to solve. My usrsctp.h was the one that was added in /usr/local/include when I did "make install"

from usrsctp.

tuexen avatar tuexen commented on July 17, 2024

Fixed in d00dc13.
Please test and close the issue...

from usrsctp.

rsecchi avatar rsecchi commented on July 17, 2024

Everything works fine. Thank you.

from usrsctp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.