3 个版本 (1 个稳定版)
1.0.0 | 2023 年 12 月 11 日 |
---|---|
0.1.9 | 2023 年 12 月 2 日 |
0.1.7 | 2023 年 12 月 1 日 |
#2130 在 网络编程
56KB
1K SLoC
ryn
简单的多用户聊天命令行界面。
该项目源自 https://github.com/tsoding/4at
,并添加了新功能,简化使用以提高功能。
快速开始
在 Linux 上准备
apt install libxcb-shape0-dev libxcb-xfixes0-dev
安装
cargo install ryn
服务器
ryn_server
运行服务器后将在 ./TOKEN
创建文件,其中包含身份验证令牌。您需要通过客户端连接到服务器。
客户端
ryn_client
/connect <ip> <token> - Connect server by <ip>, do't need port default port is 8081 , authorization <token>, /connect 172.20.10.3 fdac
/c <ip> <token> - Connect server by <ip>, do't need port default port is 8081,authorization <token>,/c 172.20.10.3 fdac
/disconnect - Disconnect from the server you are currently connected to
/d - Disconnect from the server you are currently connected to
/send_clip - send clipboard to the server you are currently connected
/sc - send clipboard to the server you are currently connected
/send_file <file_path> - send file to the server you are currently connected ,file_path is absolute path
/sf <file_path> - send file to the server you are currently connected ,file_path is absolute path
/quit - Close the chat
/q - Close the chat
/help [command] - Print help
在客户端提示符中
> /c <server ip> <token>
依赖项
~9–22MB
~365K SLoC