3 #include "../stdlib/thread_mutex.hpp" 5 #ifndef ACL_CLIENT_ONLY 29 void run_daemon(
int argc,
char** argv);
45 bool run_alone(
const char* addrs,
const char* path = NULL,
46 unsigned int count = 1,
int threads_count = 1);
64 const char* get_conf_path(
void)
const;
71 size_t task_qlen(
void)
const;
184 void run(
int argc,
char** argv);
190 static void service_on_listen(
void*,
ACL_VSTREAM*);
197 static int service_on_handshake(
void*,
ACL_VSTREAM*);
200 static int service_on_timeout(
void*,
ACL_VSTREAM*);
206 static void service_pre_jail(
void*);
209 static void service_init(
void*);
212 static int service_exit_timer(
void*,
size_t,
size_t);
215 static void service_exit(
void*);
218 static int thread_init(
void*);
221 static void thread_exit(
void*);
229 #endif // ACL_CLIENT_ONLY
virtual void thread_on_exit()
virtual void thread_on_close(socket_stream *stream)
virtual void thread_on_init()
struct acl_pthread_pool_t acl_pthread_pool_t
virtual bool thread_on_timeout(socket_stream *stream)
virtual bool thread_on_handshake(socket_stream *stream)
struct ACL_EVENT ACL_EVENT
virtual bool keep_read(socket_stream *stream)
virtual bool proc_exit_timer(size_t nclients, size_t nthreads)
virtual bool thread_on_accept(socket_stream *stream)