Single thread (#339)

* single thread

Based on https://github.com/sctplab/usrsctp/pull/38/commits/010fcbc6f193152607dc267c7e7e573c9bffc111

from @ccaughie

* single thread: st_client.c. remove unused variables

* Revert "single thread: st_client.c. remove unused variables"

This reverts commit 1e240a954dcadf6296b9a0f2d1299e07a9e65ca8.

* single thread: st_client.c. remove unused variable

* single thread: s/usrsctp_fire_timer/usrsctp_handle_timers

* single thread: remove duplicated functions

* single thread: remove duplicate check for SCTP_SO_IS_NBIO(so)

* single thread: s/handle_packets/handle_events

* .gitignore: ignore programs/st_client binary

* user_socket.c: remove unnecessary SB_UPCALL check

* programs/client.c: make main() return(-1) after perror()

* programs/st_client.c: trying to make it work (it does not yet)

* programs/st_client.c: replace CLOCKS_PER_SEC with gettimeofday based code

* programs/client.c: revert cosmetic changes

* programs/st_client.c: clean debug prints

* programs/meson.build: add st_client

* Fix warnings in Windows

* programs/st_client.c: use snd 0 instead of 1.

* programs/st_client.c: add usrsctp_setsockopt(s, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int))
14 files changed
tree: 3d1671eef22eba1e661bbede01ee619b99690733
  1. programs/
  2. usrsctplib/
  3. .gitignore
  4. bootstrap
  5. CMakeLists.txt
  6. configure.ac
  7. gen-def.py
  8. LICENSE.md
  9. Makefile.am
  10. Makefile.nmake
  11. Manual.md
  12. Manual.tex
  13. meson.build
  14. meson_options.txt
  15. README.md
  16. usrsctp.pc.in
README.md

usrsctp

Coverity Scan Build Status

This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.

See manual for more information.

The status of continuous integration testing is available from our Buildbot.