https://github.com/teonet-go/teonet-c
Teonet v5 C library and examples
https://github.com/teonet-go/teonet-c
c client-server cpp low-latency messaging microservices networking python reliable-udp teonet udp udp-protocol
Last synced: about 2 months ago
JSON representation
Teonet v5 C library and examples
- Host: GitHub
- URL: https://github.com/teonet-go/teonet-c
- Owner: teonet-go
- License: bsd-3-clause
- Created: 2021-06-21T12:21:58.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-09T13:55:02.000Z (almost 4 years ago)
- Last Synced: 2025-05-20T01:15:49.660Z (about 1 year ago)
- Topics: c, client-server, cpp, low-latency, messaging, microservices, networking, python, reliable-udp, teonet, udp, udp-protocol
- Language: C
- Homepage:
- Size: 8.26 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Teonet-c
[Teonet v5](https://github.com/teonet-go/teonet) C library and examples.

Teonet is designed to create client-server systems and build networks for server applications operating within a microservice architecture.
Main Teonet v5 code was created on Golang. This project make c/c++ dynamic library to use it in any C/C++ and C compatible applications.
The description of Teonet you can find at [main Teonet-go page](https://github.com/teonet-go).
The examples of this project copy Teonet-go examples functional. So look this project examples to get started with teonet-c library: [examples](https://github.com/teonet-go/teonet-c/tree/main/cmd)
## Contents
- [Make Teonet-c library and examples](#make-library-and-examples)
- C language examples
- Simple message mode
- [Simple Clent](https://github.com/teonet-go/teonet-c/tree/main/cmd/echo/main.c)
- [Simple Server](https://github.com/teonet-go/teonet-c/tree/main/cmd/echo-serve/main.c)
- Command message mode
- [Command mode Clent](https://github.com/teonet-go/teonet-c/tree/main/cmd/command/main.c)
- [Command mode Server](https://github.com/teonet-go/teonet-c/tree/main/cmd/command-serve/main.c)
- API message mode
- [API Clent](https://github.com/teonet-go/teonet-c/tree/main/cmd/api/main.c)
- [API Server](https://github.com/teonet-go/teonet-c/tree/main/cmd/api-serve/main.c)
- C++ language examples
- Simple message mode
- [Simple Clent](https://github.com/teonet-go/teonet-c/tree/main/cmd/cpp/echo/main.cpp)
- Command message mode
- [Command mode Clent](https://github.com/teonet-go/teonet-c/tree/main/cmd/cpp/command/main.cpp)
- API message mode
- [API Clent](https://github.com/teonet-go/teonet-c/tree/main/cmd/cpp/api/main.cpp)
- [API Server](https://github.com/teonet-go/teonet-c/tree/main/cmd/cpp/api-serve/main.cpp)
## Make library and examples
To make Teonet-c library from sources you need install `git` `go` `gcc` and `make` applications on you computer.
Clone this repository to you project folder:
```shell
cd project_folder
git clone https://github.com/teonet-go/teonet-c.git
cd teonet-c
```
There is Makefile, use `make` command to execute it.
To build library use:
```shell
make build-library
sudo make ldconfig
```
To build examples use:
```shell
make build
```
After this you can run examples from projects root folder.
Run the C++ API message mode client:
```shell
./cmd/cpp/api/teoapi-cpp
```
## License
[BSD](LICENSE)