1- = WeeChat Relay
2- :author: Sébastien Helleu
3- 4- :lang: en
1+ # WeeChat Relay
52
3+ [ ![ CI] ( https://github.com/weechat/weechat-relay/workflows/CI/badge.svg )] ( https://github.com/weechat/weechat-relay/actions )
4+ [ ![ Code coverage] ( https://codecov.io/gh/weechat/weechat-relay/branch/master/graph/badge.svg )] ( https://codecov.io/gh/weechat/weechat-relay )
65
7- image:https://github.com/weechat/weechat-relay/workflows/CI/badge.svg["CI", link="https://github.com/weechat/weechat-relay/actions"]
8- image:https://codecov.io/gh/weechat/weechat-relay/branch/master/graph/badge.svg["Code coverage", link="https://codecov.io/gh/weechat/weechat-relay"]
6+ WeeChat Relay is a C library to communicate between WeeChat and a client using the "weechat" relay protocol.
97
10- WeeChat Relay is a C library to communicate between WeeChat and a client using
11- the "weechat" relay protocol.
8+ > [ !IMPORTANT]
9+ > This library is under development, there is no stable version yet.\
10+ ** DO NOT USE IN PRODUCTION!**
1211
13- [IMPORTANT]
14- This library is under development, there is no stable version yet. +
15- *DO NOT USE IN PRODUCTION!*
12+ Homepage: [ https://weechat.org/ ] ( https://weechat.org/ )
1613
17- Homepage: https://weechat.org/
14+ ## Features
1815
19- == Features
16+ - Communication between WeeChat and a client:
17+ - from client to WeeChat: build and send commands, decode binary messages received from WeeChat
18+ - from WeeChat to client: build and send binary messages.
19+ - Command-line interface to the WeeChat Relay library (` weechat-relay-cli ` ), which can be used for tests, debug or in shell scripts.
2020
21- * Communication between WeeChat and a client:
22- ** from client to WeeChat: build and send commands, decode binary messages
23- received from WeeChat
24- ** from WeeChat to client: build and send binary messages.
25- * Command-line interface to the WeeChat Relay library (`weechat-relay-cli`),
26- which can be used for tests, debug or in shell scripts.
21+ ## Install
2722
28- == Install
23+ ### Dependencies
2924
30- === Dependencies
25+ The following packages are ** required ** :
3126
32- Following packages are *required*:
27+ - CMake
28+ - GnuTLS
29+ - GNU Readline (for ` weechat-relay-cli ` )
30+ - libzstd
31+ - zlib
3332
34- * CMake
35- * GnuTLS
36- * GNU Readline (for `weechat-relay-cli`)
37- * libzstd
38- * zlib
33+ ### Compile
3934
40- === Compile
35+ Installation in system directories (requires _ root _ privileges):
4136
42- * Installation in system directories (requires _root_ privileges):
37+ ``` bash
38+ mkdir build
39+ cd build
40+ cmake ..
41+ make
42+ sudo make install
43+ ```
4344
44- ----
45- $ mkdir build
46- $ cd build
47- $ cmake ..
48- $ make
49- $ sudo make install
50- ----
45+ Installation in custom directory (for example your home):
5146
52- * Installation in custom directory (for example your home):
47+ ``` bash
48+ mkdir build
49+ cd build
50+ cmake -DCMAKE_INSTALL_PREFIX=/path/to/directory ..
51+ make
52+ make install
53+ ```
5354
54- ----
55- $ mkdir build
56- $ cd build
57- $ cmake -DCMAKE_INSTALL_PREFIX=/path/to/directory ..
58- $ make
59- $ make install
60- ----
55+ ### Run tests
6156
62- === Run tests
57+ The following packages are ** required ** to compile tests:
6358
64- Following packages are *required* to compile tests:
65-
66- * libcpputest-dev
67- * C++ compiler
59+ - libcpputest-dev
60+ - C++ compiler
6861
6962Tests must be enabled when compiling WeeChat Relay:
7063
71- ----
72- $ cmake -DBUILD_TESTS=ON ..
73- ----
64+ ``` bash
65+ cmake -DBUILD_TESTS=ON ..
66+ ```
7467
7568They can be launched after compilation from the build directory:
7669
77- ----
78- $ ctest -V
79- ----
70+ ``` bash
71+ ctest -V
72+ ```
8073
81- == Command-line interface
74+ ## Command-line interface
8275
83- The binary `weechat-relay-cli` can be used to debug communication between
84- a client and WeeChat relay.
76+ The binary ` weechat-relay-cli ` can be used to debug communication between a client and WeeChat relay.
8577
8678For help:
8779
88- ----
80+ ``` bash
8981weechat-relay-cli --help
90- ----
82+ ```
9183
9284Example:
9385
94- ----
86+ ``` bash
9587$ weechat-relay-cli -dd -s -p 12345 localhost
9688Connected to 127.0.0.1 (SSL)
9789weechat-relay> init password=my_secret_password
@@ -112,11 +104,11 @@ weechat-relay> info version
112104weechat-relay> quit
113105<-- quit (5 bytes)
114106 71 75 69 74 0A q u i t .
115- ----
107+ ` ` `
116108
117- == Copyright
109+ # # Copyright
118110
119- Copyright
(C) 2019-
2023 Sébastien Helleu
<[email protected] > 111+ Copyright © 2019-2024 [ Sébastien Helleu](https://github.com/flashcode)
120112
121113This file is part of WeeChat Relay.
122114
0 commit comments