Files
ocserv/src/main-ctl.h
Nikos Mavrogiannopoulos fe28fd15cd Added occtl command 'show events', as well as the corresponding command in main
This allows the main process to handle a single listener which will
get all information about new and disconnecting users.
2015-12-05 11:23:06 +01:00

15 lines
401 B
C

#ifndef MAIN_CTL_HANDLER_H
# define MAIN_CTL_HANDLER_H
#include <occtl/ctl.h>
#include <ev.h>
int ctl_handler_init(main_server_st* s);
void ctl_handler_deinit(main_server_st* s);
void ctl_handler_set_fds(main_server_st* s, ev_io *watcher);
void ctl_handler_run_pending(main_server_st* s, ev_io *watcher);
void ctl_handler_notify (main_server_st* s, struct proc_st *proc, unsigned connect);
#endif