Giter Club home page Giter Club logo

Comments (10)

gedOHub avatar gedOHub commented on July 17, 2024

Haven't saw this:

If UDP encapsulation is not necessary, the UDP port has to be set to 0.

from usrsctp.

gedOHub avatar gedOHub commented on July 17, 2024

Is there any example program working directly with SCTP?

from usrsctp.

tuexen avatar tuexen commented on July 17, 2024

Sure:

  • programs/client
  • programs/daytime_server
  • programs/discard_server
  • programs/echo_server
  • programs/http_client
  • programs/tsctp

from usrsctp.

weinrank avatar weinrank commented on July 17, 2024

@gedOHub which OS are you using?

To make sure: You are running the samples as root when using native SCTP?

from usrsctp.

gedOHub avatar gedOHub commented on July 17, 2024

Yes, running as administrator (Windows 10). Still trying to figure out how lib works :)

from usrsctp.

gedOHub avatar gedOHub commented on July 17, 2024

For example, why echo_server without parameters opens UDP 9899 port? Uses UDP encapsulation?

from usrsctp.

weinrank avatar weinrank commented on July 17, 2024

Because he is told to do so! 😀
See echo_server.c and usrsctp_init()

Have you tried to use the http_client? It's a handy example to get familiar with the usrsctp usage on client side.

To disable the verbose debug output, simply uncomment the usrsctp_sysctl_set_sctp_debug_on(SCTP_DEBUG_ALL); line here

You can test it with and without UDP-encapsulation against a small test system we are running
./http_client 212.201.121.100 80 0 9899 9899 with udp encaps
./http_client 212.201.121.100 80 native/raw sctp - run as admin
Running native SCTP may fail because of middleboxes and NATs.

Generally it is recommended that you don't run the server and a client on the same machine to avoid problems. Especially for debugging with Wireshark it's highly recommended to use two machines / VMs.

from usrsctp.

gedOHub avatar gedOHub commented on July 17, 2024

I need to run native SCTP for experment. So, to run native SCTP I need to usrsctp_init with first argument 0?

from usrsctp.

weinrank avatar weinrank commented on July 17, 2024

No, it is not required to set the first argument 0.
Setting the first argument simply adds the UDP-encpas functionality - the raw SCTP remains active.
For RAW SCTP you have to run SCTP as an administrator level.

from usrsctp.

gedOHub avatar gedOHub commented on July 17, 2024

After deep examination of http_client and your comments now it is clear how lib works. 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.