From 7a1b8a0fefe9a2a0fae6289195e2936ec9c17000 Mon Sep 17 00:00:00 2001 From: cbdev Date: Thu, 20 Jun 2019 15:23:45 +0200 Subject: Implement fixedlength framing --- README.md | 27 +++++++++++++++++++++++---- plugins/framing_fixedlength.c | 36 ++++++++++++++++++++++++++++++++++++ plugins/framing_fixedlength.md | 9 +++++++++ plugins/makefile | 5 ++++- websocksy.c | 4 ++++ websocksy.h | 1 + 6 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 plugins/framing_fixedlength.c create mode 100644 plugins/framing_fixedlength.md diff --git a/README.md b/README.md index 369f44d..83f1656 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ `websocksy` is a highly configurable [WebSocket (RFC6455)](https://tools.ietf.org/html/rfc6455) to 'normal' networking transport (TCP/UDP/Unix sockets) bridge. It is written in C and supports pluggable modules for bridge peer selection modules (for dynamic bridging) and stream framing. -It can be used to connect a wide variety of existing applications directly to a website, or to implement new functionality in a way that maintains compatibility between traditional network transports and WebSockets. +It can be used to connect a wide variety of existing applications directly to a website, or to implement new functionality in a way that maintains compatibility +between traditional network transports and WebSockets. ## Table of contents @@ -15,6 +16,7 @@ It can be used to connect a wide variety of existing applications directly to a * [Command line arguments](#command-line-arguments) * [Configuration file](#configuration-file) * [Default backend](#default-backend) + * [Plugins](#plugins) * [Building](#building) * [Development](#development) * [Peer discovery backend API](#peer-discovery-backend-api) @@ -104,7 +106,7 @@ at the time. * `-p `: Set the listen port for incoming WebSocket connections (Default: `8001`) * `-l `: Set the host for listening for incoming WebSocket connections (Default: `::`) -* `-k `: Set the inactivity timeout for sending WebSocket keep-alive pings +* `-k `: Set the inactivity timeout for sending WebSocket keep-alive pings (Default: `30`) * `-b `: Select external backend * `-c