session.h (1165B)
1 #ifndef UDPHOLE_SESSION_H 2 #define UDPHOLE_SESSION_H 3 4 #include <stdint.h> 5 6 #include "common/resp.h" 7 #include "common/scheduler.h" 8 9 typedef struct { 10 int64_t last_cleanup; 11 int initialized; 12 } session_manager_udata_t; 13 14 int session_manager_pt(int64_t timestamp, struct pt_task *task); 15 16 resp_object *domain_session_create(const char *cmd, resp_object *args); 17 resp_object *domain_session_list(const char *cmd, resp_object *args); 18 resp_object *domain_session_info(const char *cmd, resp_object *args); 19 resp_object *domain_session_destroy(const char *cmd, resp_object *args); 20 resp_object *domain_socket_create_listen(const char *cmd, resp_object *args); 21 resp_object *domain_socket_create_connect(const char *cmd, resp_object *args); 22 resp_object *domain_socket_destroy(const char *cmd, resp_object *args); 23 resp_object *domain_forward_list(const char *cmd, resp_object *args); 24 resp_object *domain_forward_create(const char *cmd, resp_object *args); 25 resp_object *domain_forward_destroy(const char *cmd, resp_object *args); 26 resp_object *domain_session_count(const char *cmd, resp_object *args); 27 resp_object *domain_system_load(const char *cmd, resp_object *args); 28 29 #endif