An open API service indexing awesome lists of open source software.

https://github.com/teonet-co/teocli

Teonet L0 client library
https://github.com/teonet-co/teocli

c teocli teonet trudp

Last synced: 5 months ago
JSON representation

Teonet L0 client library

Awesome Lists containing this project

README

          

# Teonet L0 client library

[![CodeFactor](https://www.codefactor.io/repository/github/teonet-co/teocli/badge)](https://www.codefactor.io/repository/github/teonet-co/teocli)

## Library folders structure description

### Sources folder

The folder ```libteol0``` contain source code of the teocli library

### Linux

The ```linux``` folder contain Makefile to make Linux shared library and
application.
_See [README](linux) in that folder to additional information._

### Python

The ```python``` folder contain make_python.sh file to make python module.
_See [README](python) in that folder to additional information._

### Java Script and Node.js

The ```TeocliJS``` suproject content code to connect to Teonet with websocket
from Java Script or Node.js.
_See the [TeocliJS](https://github.com/teonet-co/TeocliJS) project._

The ```teonet-client``` project located at nodejs folder is native node.js
module.
_See [README](nodejs) in nodejs folder to additional information._

### AngelScript (going soon)

The ```TeocliAS``` subproject content code to connect to Teonet from [AngelScript](http://www.angelcode.com/angelscript/).
_See the [TeocliAS](https://gitlab.ksproject.org/teonet/TeocliAS) project._

### Windows with MinGw-64

The ```win_mingw``` folder contain make_exe.sh file to make Windows DLL and
tests application under Linux.
_See [README](win_mingw) in that folder to additional information._

### Windows with Visual Studio

The ```win_vcxproj``` folder contain solution and projects to make Windows DLL
and tests under Windows Visual Studio.
_See [README](win_vcxproj) in that folder to additional information._

## Basic teocli example

### Test L0 client/server connection:

L0 Server: ```examples/teostream teo-str NULL NULL -p 9000 --l0_allow```

Teonet Peer: ```examples/teostream teostream teo-str str -r 9000 -a 127.0.0.1```

L0 client: ```examples/teol0cli C1 127.0.0.1 9000 teostream "Hello world!"```
or
L0 client: ```examples/teol0cli C1 127.0.0.1 9000 teo-str "Hello world!"```

### L0 Client packet structure:

![l0-client-packet__1_](https://raw.githubusercontent.com/wiki/teonet-co/teonet/images/l0-server-01.png?token=ABaIc0O_ceBJPp81FDpQpylfXfwagrTvks5bFwN2wA%3D%3D)