38 |
38 |
39 typedef struct _session_handler SessionHandler; |
39 typedef struct _session_handler SessionHandler; |
40 typedef struct _connection Connection; |
40 typedef struct _connection Connection; |
41 |
41 |
42 struct _connection { |
42 struct _connection { |
43 int fd; |
43 int fd; |
44 struct sockaddr_in address; |
44 struct sockaddr_in address; |
45 SessionHandler *session_handler; |
45 HttpListener *listener; |
|
46 SessionHandler *session_handler; |
46 }; |
47 }; |
47 |
48 |
48 typedef void(*enqueue_connection_f)(SessionHandler*, Connection*); |
49 typedef void(*enqueue_connection_f)(SessionHandler*, Connection*); |
49 struct _session_handler { |
50 struct _session_handler { |
50 enqueue_connection_f enqueue_connection; |
51 enqueue_connection_f enqueue_connection; |