mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-06-24 10:52:58 +03:00
write about wrac
This commit is contained in:
parent
374dab3951
commit
f615811f90
@ -11,7 +11,7 @@ better RAC client
|
|||||||
|
|
||||||
- gtk4 modern GUI
|
- gtk4 modern GUI
|
||||||
- RACv1.99.x and RACv2.0 compatible
|
- RACv1.99.x and RACv2.0 compatible
|
||||||
- WRAC compatible (can be enabled in the settings)
|
- WRAC compatible ([docs](docs/wrac.md))
|
||||||
- chat commands (type /help)
|
- chat commands (type /help)
|
||||||
- no ip and date visible for anyone
|
- no ip and date visible for anyone
|
||||||
- uses TOR proxy server by default (meex.lol:11234)
|
- uses TOR proxy server by default (meex.lol:11234)
|
||||||
@ -90,6 +90,7 @@ messages starting with a slash are sent to chat only if the `--disable-commands`
|
|||||||
## see also
|
## see also
|
||||||
|
|
||||||
- [RAC-Hub - all about RAC protocol](https://the-stratosphere-solutions.github.io/RAC-Hub/)
|
- [RAC-Hub - all about RAC protocol](https://the-stratosphere-solutions.github.io/RAC-Hub/)
|
||||||
|
- [WRAC protocol (v2.0)](docs/wrac.md)
|
||||||
- [RAC protocol (v2.0)](https://gitea.bedohswe.eu.org/pixtaded/crab#rac-protocol)
|
- [RAC protocol (v2.0)](https://gitea.bedohswe.eu.org/pixtaded/crab#rac-protocol)
|
||||||
- [CRAB - client & server for RAC](https://gitea.bedohswe.eu.org/pixtaded/crab)
|
- [CRAB - client & server for RAC](https://gitea.bedohswe.eu.org/pixtaded/crab)
|
||||||
- [Mefidroniy - client for RAC](https://github.com/OctoBanon-Main/mefedroniy-client)
|
- [Mefidroniy - client for RAC](https://github.com/OctoBanon-Main/mefedroniy-client)
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
# Cross-compile on Linux to Windows
|
|
||||||
|
|
||||||
## Install dev packages
|
|
||||||
|
|
||||||
on Nix:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
nix-shell -p pkgsCross.mingwW64.stdenv.cc pkgsCross.mingwW64.windows.pthreads pkgsCross.mingwW64.gtk4
|
|
||||||
```
|
|
||||||
|
|
||||||
## Build
|
|
||||||
|
|
||||||
```bash
|
|
||||||
build build/windows-x86_64
|
|
||||||
```
|
|
84
docs/wrac.md
Normal file
84
docs/wrac.md
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
# WRACv2.0 Protocol
|
||||||
|
|
||||||
|
Uses websocket for connections, and sends binary data only (works in packet-way manner)
|
||||||
|
|
||||||
|
Totally inherits all packets of RACv2, except of reading messages
|
||||||
|
|
||||||
|
## Sending messages
|
||||||
|
|
||||||
|
Client sends:
|
||||||
|
|
||||||
|
- Byte `0x01`
|
||||||
|
- Message text
|
||||||
|
|
||||||
|
## Sending authorized messages
|
||||||
|
|
||||||
|
Client sends:
|
||||||
|
|
||||||
|
- Byte `0x02`
|
||||||
|
- Username
|
||||||
|
- `\n`
|
||||||
|
- Password
|
||||||
|
- `\n`
|
||||||
|
- Message
|
||||||
|
|
||||||
|
Server sends:
|
||||||
|
|
||||||
|
- nothing if message was sent successfully
|
||||||
|
- `0x01` if the user does not exists
|
||||||
|
- `0x02` if the password is incorrect
|
||||||
|
|
||||||
|
## Registration users
|
||||||
|
|
||||||
|
Client sends:
|
||||||
|
|
||||||
|
- Byte `0x03`
|
||||||
|
- Username
|
||||||
|
- `\n`
|
||||||
|
- Password
|
||||||
|
|
||||||
|
Server sends:
|
||||||
|
|
||||||
|
- nothing if user was registered successfully
|
||||||
|
- `0x01` if the username is already taken
|
||||||
|
|
||||||
|
## Reading messages
|
||||||
|
|
||||||
|
### Getting message length
|
||||||
|
|
||||||
|
Client sends:
|
||||||
|
|
||||||
|
- Byte `0x00`
|
||||||
|
|
||||||
|
Server sends:
|
||||||
|
|
||||||
|
- Size of all messages in ASCII (data_size)
|
||||||
|
|
||||||
|
### Normal reading
|
||||||
|
|
||||||
|
This packet is independent from getting message length packet.
|
||||||
|
|
||||||
|
Client sends:
|
||||||
|
|
||||||
|
- Byte `0x00`
|
||||||
|
- Byte `0x01`
|
||||||
|
|
||||||
|
Server sends:
|
||||||
|
|
||||||
|
- All messages
|
||||||
|
|
||||||
|
### Chunked reading
|
||||||
|
|
||||||
|
This packet is independent from getting message length packet.
|
||||||
|
|
||||||
|
Client sends:
|
||||||
|
|
||||||
|
- Byte `0x00`
|
||||||
|
- Byte `0x02`
|
||||||
|
- Size of messages you have in ASCII (last_size)
|
||||||
|
|
||||||
|
Server sends:
|
||||||
|
|
||||||
|
- All new messages
|
||||||
|
|
||||||
|
*for example: if you want to read last N bytes, last_size = data_size - N*
|
Loading…
x
Reference in New Issue
Block a user