diff options
Diffstat (limited to 'ot_tcp.h')
| -rw-r--r-- | ot_tcp.h | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -19,4 +19,10 @@ void tcp_accept(const int64_t serversocket, struct ot_workstruct *ws); | |||
| 19 | void tcp_read(const int64_t sock, struct ot_workstruct *ws); | 19 | void tcp_read(const int64_t sock, struct ot_workstruct *ws); |
| 20 | void tcp_write(const int64_t sock); | 20 | void tcp_write(const int64_t sock); |
| 21 | 21 | ||
| 22 | /* One thread accepting on one socket. Called once per worker. */ | ||
| 23 | void tcp_worker_install(int64_t sock); | ||
| 24 | |||
| 25 | /* Stop every worker installed above and wait for it to be gone */ | ||
| 26 | void tcp_workers_deinit(void); | ||
| 27 | |||
| 22 | #endif | 28 | #endif |
