一款简单的未加密的Tcp聊天软件
cargo build -r
Usage: simple_chat.exe [OPTIONS]
Options:
-p, --port <PORT> The appliation listen port [default: random]
-b, --bind_ip <BIND_IP> [default: 127.0.0.1] The appliation bind ip
-n, --nick <NICK> not use
-f, --channel_size <CHANNEL_SIZE> [default: 1024] the buffer size
-h, --help Print help
conn <remote Address>
connect to another client
connsta
the state of connects , the short vision is sta!
msgbox <remote address> ...<msgs>
send a raw message to remote address ,short vision is msg!
.The remote address must be conned.
chatwith <remote address>
open window to chat.The remote address must be conned. short vision is cw!
chatmsg ...<messages>
on window send a raw message to remote address which is selected by chatwith
,short vision is chat!