README.md
1# lws minimal secure streams client tx
2
3The application connects to the secure stream proxy, and opens a streamtype
4"spam"... this is a websocket connection to libwebsockets.org.
5
6It then issues 100 x ws messages at 20Hz and exits.
7
8## build
9
10```
11 $ cmake . && make
12```
13
14## usage
15
16Commandline option|Meaning
17---|---
18-d <loglevel>|Debug verbosity in decimal, eg, -d15
19-f| Force connecting to the wrong endpoint to check backoff retry flow
20-p| Run as proxy server for clients to connect to over unix domain socket
21
22```
23[2021/02/19 11:25:20:1396] U: LWS secure streams client TX [-d<verb>]
24[2021/02/19 11:25:20:1756] N: LWS: 4.1.99-v4.1.0-280-ga329c51485, loglevel 1031
25[2021/02/19 11:25:20:1761] N: NET CLI SRV H1 H2 WS SS-JSON-POL SSPROX IPV6-on
26[2021/02/19 11:25:20:2055] N: ++ [1100944|wsi|0|pipe] (1)
27[2021/02/19 11:25:20:2133] N: ++ [1100944|vh|0|netlink] (1)
28[2021/02/19 11:25:20:3647] N: ++ [1100944|vh|1|default] (2)
29[2021/02/19 11:25:20:8590] N: ++ [1100944|SSPcli|0|spam] (1)
30[2021/02/19 11:25:20:8810] N: ++ [1100944|wsiSSPcli|0|RAW/raw-skt/+@proxy.ss.lws/([1100944|SSPcli|0|spam])] (1)
31[2021/02/19 11:25:20:9103] N: lws_sspc_sul_retry_cb: [1100944|wsiSSPcli|0|RAW/raw-skt/+@proxy.ss.lws/([1100944|SSPcli|0|spam|default])]
32[2021/02/19 11:25:20:9795] U: myss_state: LWSSSCS_CREATING, ord 0x0
33[2021/02/19 11:25:20:9869] U: myss_state: LWSSSCS_CONNECTING, ord 0x0
34[2021/02/19 11:25:21:0791] U: myss_state: LWSSSCS_CONNECTED, ord 0x0
35[2021/02/19 11:25:21:1444] U: myss_tx: sending pkt 1
36[2021/02/19 11:25:21:1945] U: myss_tx: sending pkt 2
37[2021/02/19 11:25:21:2459] U: myss_tx: sending pkt 3
38[2021/02/19 11:25:21:2971] U: myss_tx: sending pkt 4
39...
40```
41