36 lines
652 B
Markdown
36 lines
652 B
Markdown
# tcp-chat
|
|
|
|
## Build
|
|
1. Clone this repository with submodules.
|
|
```
|
|
git clone --recurse-submodules --depth 0 https://timerix.ddns.net/git/Timerix/tcp-chat.git
|
|
```
|
|
|
|
2. Install [cbuild](https://timerix.ddns.net/git/Timerix/cbuild/releases).
|
|
Select latest version compatible with the one in `project.config`.
|
|
Example: For `2.3.0` download latest `2.3.x`.
|
|
|
|
|
|
3. Build executable
|
|
```
|
|
cd tcp-chat
|
|
cbuild build_exec
|
|
```
|
|
|
|
|
|
## Usage
|
|
**Client:**
|
|
```sh
|
|
cd bin
|
|
./tcp-chat
|
|
```
|
|
**Server:**
|
|
1. ```sh
|
|
cp tcp-chat-server.toml.default bin/tcp-chat-server.toml
|
|
```
|
|
2. Edit config
|
|
3. ```sh
|
|
cd bin
|
|
./tcp-chat -l
|
|
```
|