sctp-echo - SCTP-over-UDP echo server/client for creating reliable tunnels over UDP.

git clone https://benconnors.ca/git-repos/sctp-echo

About | Log | Files | Refs

commit 823707ba0aa2f142eea7df79f59aabc7586f183d
parent e18302e83c243b1166fd1909c9054b1f55fc08f0
Author: Ben Connors <benconnors@outlook.com>
Date:   Wed,  5 Aug 2026 17:07:05 -0400

Cleanup

Diffstat:
Msrc/sctp_echo.c | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/sctp_echo.c b/src/sctp_echo.c @@ -1,23 +1,15 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdarg.h> #include <stdbool.h> #include <sys/types.h> #include <usrsctp.h> #include <arpa/inet.h> -#include <fcntl.h> #include <unistd.h> -#include <math.h> #include <pthread.h> #include <errno.h> -uint32_t min(uint32_t a, uint32_t b) { - return (a > b) ? b : a; -} - int done = 0; -int ready = 0; const size_t send_buffer_size = 1024; @@ -199,8 +191,6 @@ int main(int argc, char **argv) { usrsctp_listen(listen_sock, 0); } - ready = 1; - // Mainloop: read from stdin and write to the SCTP socket char buff[send_buffer_size]; int data_read;