update docs

This commit is contained in:
bol-van
2026-04-13 15:41:04 +03:00
parent bca26682e7
commit 0f63e09d64
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -1621,6 +1621,10 @@ Using timers, desync functions, and send functions, you can build a full-fledged
The system should be designed asynchronously, using a state machine. Direct sleep delays is not the option, as they break the queue-based traffic processing scheme.
While you're waiting, everything else will hang.
In the `--intercept=0` mode, if there are timers, nfqws2 doesn't exit immediately, but calls the timers until there are none left.
After this, the process terminates.
### Timer function prototype
```
+3
View File
@@ -1768,6 +1768,9 @@ nfqws2 - программа однопоточная, как и движок Lua
Проектировать схему нужно асинхронно в стиле конечного автомата. Прямые задержки sleep в коде не предусмотрены, поскольку ломают
схему обработки трафика через очередь. Пока вы ждете - остальное повиснет.
В режиме `--intercept=0` при наличии таймеров nfqws2 не выходит сразу, а исправно вызывает таймеры, пока не останется ни одного.
После этого процесс завершается.
### Прототип функции таймера
```