diff --git a/README.md b/README.md index 46719e3..64f65f7 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.