mirror of
https://github.com/bol-van/zapret2.git
synced 2026-06-17 12:50:04 +04:00
update docs
This commit is contained in:
@@ -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
|
||||
|
||||
```
|
||||
|
||||
@@ -1768,6 +1768,9 @@ nfqws2 - программа однопоточная, как и движок Lua
|
||||
Проектировать схему нужно асинхронно в стиле конечного автомата. Прямые задержки sleep в коде не предусмотрены, поскольку ломают
|
||||
схему обработки трафика через очередь. Пока вы ждете - остальное повиснет.
|
||||
|
||||
В режиме `--intercept=0` при наличии таймеров nfqws2 не выходит сразу, а исправно вызывает таймеры, пока не останется ни одного.
|
||||
После этого процесс завершается.
|
||||
|
||||
### Прототип функции таймера
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user