diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-31 09:49:10 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-07 13:18:13 +0200 |
commit | 90b855e1aa23886dbb4bd794e2527a26973dd5fb (patch) | |
tree | 2ffc437362634955d801bb0ca8442e611bbcb321 /src/plugins/relay/relay.c | |
parent | fd3219246432b35f165c5d1edfa78c76a743723e (diff) | |
download | weechat-90b855e1aa23886dbb4bd794e2527a26973dd5fb.zip |
relay: add connection to remote (issue #2066)
Connection to remote:
- handshake: offer support for all supported hash algorithms
- network connect with a socket
- upgrade to websocket and authenticate with remote (password/TOTP)
- check websocket response
- get list of buffers (not used yet)
Note: connection to remote with TLS or a proxy is not yet supported.
Diffstat (limited to 'src/plugins/relay/relay.c')
-rw-r--r-- | src/plugins/relay/relay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/relay.c b/src/plugins/relay/relay.c index bf3188937..f643ec860 100644 --- a/src/plugins/relay/relay.c +++ b/src/plugins/relay/relay.c @@ -58,6 +58,8 @@ char *relay_status_name[] = /* name of status (for signal/info) */ { "connecting", "waiting_auth", "connected", "auth_failed", "disconnected" }; +char *relay_msg_type_string[] = /* prefix in raw buffer for msg */ +{ "", "[PING]\n", "[PONG]\n", "[CLOSE]\n" }; struct t_hdata *relay_hdata_buffer = NULL; struct t_hdata *relay_hdata_lines = NULL; |