30 #define SESSION_H |
30 #define SESSION_H |
31 |
31 |
32 #include "../public/nsapi.h" |
32 #include "../public/nsapi.h" |
33 #include "../util/thrpool.h" |
33 #include "../util/thrpool.h" |
34 #include "config.h" |
34 #include "config.h" |
|
35 #include "sessionhandler.h" |
35 |
36 |
36 #ifdef __cplusplus |
37 #ifdef __cplusplus |
37 extern "C" { |
38 extern "C" { |
38 #endif |
39 #endif |
39 |
40 |
40 typedef struct NSAPISession NSAPISession; |
41 typedef struct NSAPISession NSAPISession; |
41 |
42 |
42 struct NSAPISession { |
43 struct NSAPISession { |
43 Session sn; /* public session structure */ |
44 Session sn; /* public session structure */ |
44 int sys_fd; /* system file descriptor */ |
45 Connection *connection; |
|
46 netbuf *netbuf; |
45 threadpool_t *currentpool; |
47 threadpool_t *currentpool; |
46 threadpool_t *defaultpool; |
48 threadpool_t *defaultpool; |
47 |
49 |
48 ServerConfiguration *config; |
50 ServerConfiguration *config; |
49 }; |
51 }; |