diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index c1524330..047300b1 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -147,22 +147,22 @@ enum MHD_ConnectionEventLoopInfo | |||
147 | /** | 147 | /** |
148 | * We are waiting to be able to read. | 148 | * We are waiting to be able to read. |
149 | */ | 149 | */ |
150 | MHD_EVENT_LOOP_INFO_READ = 1, | 150 | MHD_EVENT_LOOP_INFO_READ = 0, |
151 | 151 | ||
152 | /** | 152 | /** |
153 | * We are waiting to be able to write. | 153 | * We are waiting to be able to write. |
154 | */ | 154 | */ |
155 | MHD_EVENT_LOOP_INFO_WRITE = 2, | 155 | MHD_EVENT_LOOP_INFO_WRITE = 1, |
156 | 156 | ||
157 | /** | 157 | /** |
158 | * We are waiting for the application to provide data. | 158 | * We are waiting for the application to provide data. |
159 | */ | 159 | */ |
160 | MHD_EVENT_LOOP_INFO_BLOCK = 4, | 160 | MHD_EVENT_LOOP_INFO_BLOCK = 2, |
161 | 161 | ||
162 | /** | 162 | /** |
163 | * We are finished and are awaiting cleanup. | 163 | * We are finished and are awaiting cleanup. |
164 | */ | 164 | */ |
165 | MHD_EVENT_LOOP_INFO_CLEANUP = 8 | 165 | MHD_EVENT_LOOP_INFO_CLEANUP = 3 |
166 | }; | 166 | }; |
167 | 167 | ||
168 | 168 | ||
@@ -918,11 +918,6 @@ struct MHD_UpgradeResponseHandle | |||
918 | MHD_socket app_socket; | 918 | MHD_socket app_socket; |
919 | 919 | ||
920 | /** | 920 | /** |
921 | * IO-state of the @e app_socket. | ||
922 | */ | ||
923 | enum MHD_ConnectionEventLoopInfo celi_app; | ||
924 | |||
925 | /** | ||
926 | * If @a app_sock was a socketpair, our end of it, otherwise | 921 | * If @a app_sock was a socketpair, our end of it, otherwise |
927 | * #MHD_INVALID_SOCKET; (r/w). | 922 | * #MHD_INVALID_SOCKET; (r/w). |
928 | */ | 923 | */ |
@@ -931,7 +926,13 @@ struct MHD_UpgradeResponseHandle | |||
931 | /** | 926 | /** |
932 | * IO-state of the @e mhd_socket. | 927 | * IO-state of the @e mhd_socket. |
933 | */ | 928 | */ |
934 | enum MHD_ConnectionEventLoopInfo celi_mhd; | 929 | enum MHD_EpollState celi_mhd; |
930 | |||
931 | /** | ||
932 | * IO-state of the @e connection's socket. | ||
933 | */ | ||
934 | enum MHD_EpollState celi_client; | ||
935 | |||
935 | 936 | ||
936 | }; | 937 | }; |
937 | 938 | ||
@@ -1027,6 +1028,16 @@ struct MHD_Daemon | |||
1027 | #endif | 1028 | #endif |
1028 | 1029 | ||
1029 | /** | 1030 | /** |
1031 | * Head of DLL of upgrade response handles we are processing. | ||
1032 | */ | ||
1033 | struct MHD_UpgradeResponseHandle *urh_head; | ||
1034 | |||
1035 | /** | ||
1036 | * Tail of DLL of upgrade response handles we are processing. | ||
1037 | */ | ||
1038 | struct MHD_UpgradeResponseHandle *urh_tail; | ||
1039 | |||
1040 | /** | ||
1030 | * Head of the XDLL of ALL connections with a default ('normal') | 1041 | * Head of the XDLL of ALL connections with a default ('normal') |
1031 | * timeout, sorted by timeout (earliest at the tail, most recently | 1042 | * timeout, sorted by timeout (earliest at the tail, most recently |
1032 | * used connection at the head). MHD can just look at the tail of | 1043 | * used connection at the head). MHD can just look at the tail of |