Comments (10)
Haven't saw this:
If UDP encapsulation is not necessary, the UDP port has to be set to 0.
from usrsctp.
Is there any example program working directly with SCTP?
from usrsctp.
Sure:
programs/client
programs/daytime_server
programs/discard_server
programs/echo_server
programs/http_client
programs/tsctp
from usrsctp.
@gedOHub which OS are you using?
To make sure: You are running the samples as root when using native SCTP?
from usrsctp.
Yes, running as administrator (Windows 10). Still trying to figure out how lib works :)
from usrsctp.
For example, why echo_server without parameters opens UDP 9899 port? Uses UDP encapsulation?
from usrsctp.
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.
I need to run native SCTP for experment. So, to run native SCTP I need to usrsctp_init with first argument 0?
from usrsctp.
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.
After deep examination of http_client and your comments now it is clear how lib works. Thank you!!
from usrsctp.
Related Issues (20)
- building fails at warning about parentheses: HOT 7
- CVE-2022-46871 impact on libusrsctp HOT 1
- Aborted with sctp_timeout_handler: tmr->self corrupted, but tmr->self is null in the core dump HOT 6
- Aborted with sodealloc(): so_count -58769387 -- suspected use-after-free in sctp_timeout_handler HOT 2
- Broken build on macOS 13.4 (apple sillicon) HOT 1
- What does usrsctp_conninput do? HOT 1
- [question] What's the release policy? HOT 2
- -Wunused-function atomic_init
- Question about the different streams in the same association HOT 2
- New release? HOT 2
- disabling sctp chunk bundling HOT 3
- user_environment.c: extra "{" in read_random()
- Q: Support for L4S HOT 1
- if usrsctp support android
- sctp over udp encapsulation does not work under NAT network : part 2 HOT 1
- Is it possiable adding BBR Congestion Control algorithm for usrsctp? HOT 1
- Crash in sctp_common_input_processing: race between usrsctp_conninput and usrsctp_accept HOT 1
- Reproducer: soref of deleted socket
- Deadlock between usrsctp_conninput and usrsctp_close HOT 1
- Self-deadlock in usrsctp_close while recv_callback is being invoked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usrsctp.