A chat server built on top of TCP
Make sure that you install Rust first.
Then use Cargo to install the server and client binaries:
cargo install --git https://github.com/wcygan/chat client
This will install chatcli
, the client binary
If you are just interested in using the client, you can skip this step.
Installing the server will allow you to run your own chat server.
cargo install --git https://github.com/wcygan/chat server
This will install chatsrv
, the server binary
A client allows you to connect to a chat server and send messages to other clients.
chatcli --help
A client used to connect to a chat server
Usage: chatcli [OPTIONS]
Options:
-a, --address <ADDRESS> The address of the server to connect to [default: 127.0.0.1:8080]
-h, --help Print help
A server allows you to spawn a chat server on a given port. Clients can connect to this server and send messages to each other.
chatsrv -h
Spawn a chat server on the given port
Usage: chatsrv [OPTIONS]
Options:
-p, --port <PORT> The port to use for the server [default: 8080]
-h, --help Print help