3 releases (1 stable)

1.0.0 Dec 11, 2023
0.1.9 Dec 2, 2023
0.1.7 Dec 1, 2023

#2050 in Network programming

21 downloads per month

MIT license

56KB
1K SLoC

ryn

Crates.io Rust license

Simple Multi-User Chat cli.

this project is from https://github.com/tsoding/4at and new functions and simlify useage for improve capability.

Quick Start

prepare in linux

apt install libxcb-shape0-dev libxcb-xfixes0-dev

install

cargo install ryn

Server

ryn_server

Upon running the server creates ./TOKEN where the Authentication Token is located. You will needed to connect to the Server via the Client.

Client

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                                                                           

In the prompt of the Client

> /c <server ip> <token>

Dependencies

~8–19MB
~350K SLoC