diff options
author | mrfoxygmfr <mrfoxygmfr@sch9.ru> | 2025-05-21 02:35:58 +0300 |
---|---|---|
committer | mrfoxygmfr <mrfoxygmfr@sch9.ru> | 2025-05-21 02:35:58 +0300 |
commit | ed729f994f55fe2bdbfa824689afab82d3ac87c7 (patch) | |
tree | d593ce59222b1aa3113a3cb1f8fef3d7466d8553 /lib/controller.h | |
parent | b7fa22dfeb60e66a6ba5e0a6a554d0f056e09724 (diff) |
feat(lib): implement controller and worker in library
Diffstat (limited to 'lib/controller.h')
-rw-r--r-- | lib/controller.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/controller.h b/lib/controller.h new file mode 100644 index 0000000..8ad7756 --- /dev/null +++ b/lib/controller.h @@ -0,0 +1,15 @@ +#ifndef CONTROLLER_H +#define CONTROLLER_H + +#include "./common.h" + +void controller_init(const char* srv_addr, const char* srv_port, int min_conn, int max_conn); +void controller_finish(); + +void controller_start(); +void controller_wait(); + +int controller_yield_task(const char* data, size_t size); +int controller_get_result(const char** res, size_t* size); + +#endif // CONTROLLER_H |