Skip to content

Commit

Permalink
README.md updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-scherba committed Aug 20, 2023
1 parent 7fbb274 commit ffe7f25
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The trugw contains two packages: trugw and splitter, and four examples in cmd fo

To execute whall example install and run next applications:

Instal Tru and this Trugw repo
Install Tru and this Trugw repo

```shell
mkdir -p ~/go/src/github.com/teonet-go
Expand All @@ -36,12 +36,30 @@ cd ~/go/src/github.com/teonet-go/trugw
go run ./cmd/trugw/server/
```

### Golang client

```shell
# Trugw client
# Trugw golang client
cd ~/go/src/github.com/teonet-go/trugw
go run ./cmd/trugw/client -n 5
```

### C, C+ clients

```shell
# Trugw C client
cd ~/go/src/github.com/teonet-go/trugw/cmd/trugw/client-c
gcc main.c ../../../trugw-c/trugw.c -o client-c
./client-c
```

```shell
# Trugw C++ client
cd ~/go/src/github.com/teonet-go/trugw/cmd/trugw/client-cpp
gcc main.cpp ../../../trugw-c/trugw.c -lstdc++ -o client-cpp
./client-cpp
```

## How it works

The `Tru echo peer` start Tru peer running at udp port 7070. It listening tru connection got messages and send answers it to sender.
Expand Down

0 comments on commit ffe7f25

Please sign in to comment.