udphole

Basic UDP wormhole proxy
git clone git://git.finwo.net/app/udphole
Log | Files | Refs | README | LICENSE

session.h (1095B)


      1 #ifndef UDPHOLE_SESSION_H
      2 #define UDPHOLE_SESSION_H
      3 
      4 #include <stdint.h>
      5 
      6 #include "domain/scheduler.h"
      7 #include "common/resp.h"
      8 
      9 PT_THREAD(session_manager_pt(struct pt *pt, int64_t timestamp, struct pt_task *task));
     10 
     11 resp_object *domain_session_create(const char *cmd, resp_object *args);
     12 resp_object *domain_session_list(const char *cmd, resp_object *args);
     13 resp_object *domain_session_info(const char *cmd, resp_object *args);
     14 resp_object *domain_session_destroy(const char *cmd, resp_object *args);
     15 resp_object *domain_socket_create_listen(const char *cmd, resp_object *args);
     16 resp_object *domain_socket_create_connect(const char *cmd, resp_object *args);
     17 resp_object *domain_socket_destroy(const char *cmd, resp_object *args);
     18 resp_object *domain_forward_list(const char *cmd, resp_object *args);
     19 resp_object *domain_forward_create(const char *cmd, resp_object *args);
     20 resp_object *domain_forward_destroy(const char *cmd, resp_object *args);
     21 resp_object *domain_session_count(const char *cmd, resp_object *args);
     22 resp_object *domain_system_load(const char *cmd, resp_object *args);
     23 
     24 #endif