diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-04 10:44:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-04 10:44:08 +0000 |
commit | 64c6b9904a3c9f3c42d93aa4917ce50c3f7e941b (patch) | |
tree | ce164a72085880b5955c991e1c35f6d62b221c01 /src/include/microhttpd.h | |
parent | 352a07b01018a4379f4fd83b8277730f044afede (diff) | |
download | libmicrohttpd-64c6b9904a3c9f3c42d93aa4917ce50c3f7e941b.tar.gz libmicrohttpd-64c6b9904a3c9f3c42d93aa4917ce50c3f7e941b.zip |
-fixing the FLUSH problem nicely
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index afb97571..49af7fde 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -2250,30 +2250,7 @@ enum MHD_UpgradeAction | |||
2250 | * | 2250 | * |
2251 | * Takes no extra arguments. | 2251 | * Takes no extra arguments. |
2252 | */ | 2252 | */ |
2253 | MHD_UPGRADE_ACTION_CLOSE = 0, | 2253 | MHD_UPGRADE_ACTION_CLOSE = 0 |
2254 | |||
2255 | /** | ||
2256 | * Uncork the TCP write buffer (that is, tell the OS to transmit all | ||
2257 | * bytes in the buffer now, and to not use TCP-CORKing). | ||
2258 | * | ||
2259 | * Takes no extra arguments. | ||
2260 | * | ||
2261 | * NOTE: it is unclear if we want to have this in the | ||
2262 | * "final" API, this is just an idea right now. | ||
2263 | */ | ||
2264 | MHD_UPGRADE_ACTION_CORK, | ||
2265 | |||
2266 | /** | ||
2267 | * Try to "flush" our write buffer (to the network), returning | ||
2268 | * #MHD_YES on success (buffer is empty) and #MHD_NO on failure | ||
2269 | * (unsent bytes remain in buffers). This option is useful if | ||
2270 | * the application wants to make sure that all data has been sent, | ||
2271 | * which may be a good idea before closing the socket. | ||
2272 | * | ||
2273 | * NOTE: it is unclear if we want to have this in the | ||
2274 | * "final" API, this is just an idea right now. | ||
2275 | */ | ||
2276 | MHD_UPGRADE_ACTION_FLUSH | ||
2277 | 2254 | ||
2278 | }; | 2255 | }; |
2279 | 2256 | ||