Files
cworker/README.md
2023-08-15 08:39:32 +02:00

45 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

##cworker mini framework
A minimalist kit for creating a network or local service
using only C (replacing a previously written and lost one).
Purpose: to create system services
Available:
* cflexer/cfparser - configuration file parsing
* cllexer/clparser - parsing command line options
* jlexer/jparser - json description parsing (only key-value for now)
* rcache - buffered reading from open descriptor
* cworker - network service framework
##cworker mini framework
Минималисткий набор для создания сетевого или локального сервиса
с использованием только C (взамен ранее написанного и утерянного).
Цель: создание системных сервисов
В наличии:
* cflexer/cfparser - разбор конфигурационого файла
* cllexer/clparser - разбор опций коммандной строки
* jlexer/jparser - разбор json описания (пока только key-value)
* rcache - буферизованное чтение из открытого дескриптора
* cworker - каркас сетевого сервиса
В разработке.
## Output example
```
2023-08-15T07:35:59.585125566+EET debug: init service
2023-08-15T07:35:59.585255932+EET debug: reading configiration
2023-08-15T07:35:59.585401789+EET debug: reading options
2023-08-15T07:35:59.585465130+EET debug: port: 9002
2023-08-15T07:35:59.585512374+EET debug: configure service
2023-08-15T07:35:59.585557007+EET debug: detach service
2023-08-15T07:35:59.585601580+EET debug: build service
2023-08-15T07:35:59.585646324+EET debug: run service
```