Teonet v5 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.
The examples of this project copy Teonet-go examples functional. So look this project examples to get started with teonet-c library: examples
- Make Teonet-c library and examples
- C language examples
- Simple message mode
- Command message mode
- API message mode
- C++ language examples
- Simple message mode
- Command message mode
- API message mode
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:
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:
make build-library
sudo make ldconfig
To build examples use:
make build
After this you can run examples from projects root folder.
Run the C++ API message mode client:
./cmd/cpp/api/teoapi-cpp