diff options
Diffstat (limited to 'src/lib/connection_finish_forward.h')
-rw-r--r-- | src/lib/connection_finish_forward.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/connection_finish_forward.h b/src/lib/connection_finish_forward.h new file mode 100644 index 00000000..c6c04f42 --- /dev/null +++ b/src/lib/connection_finish_forward.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | This file is part of libmicrohttpd | ||
3 | Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff | ||
4 | |||
5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Lesser General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2.1 of the License, or (at your option) any later version. | ||
9 | |||
10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Lesser General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Lesser General Public | ||
16 | License along with this library; if not, write to the Free Software | ||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | /** | ||
20 | * @file lib/connection_finish_forward.h | ||
21 | * @brief complete upgrade socket forwarding operation in TLS mode | ||
22 | * @author Christian Grothoff | ||
23 | */ | ||
24 | |||
25 | #ifndef CONNECTION_FINISH_FORWARD_H | ||
26 | #define CONNECTION_FINISH_FORWARD_H | ||
27 | |||
28 | |||
29 | /** | ||
30 | * Stop TLS forwarding on upgraded connection and | ||
31 | * reflect remote disconnect state to socketpair. | ||
32 | * | ||
33 | * @remark In thread-per-connection mode this function | ||
34 | * can be called from any thread, in other modes this | ||
35 | * function must be called only from thread that process | ||
36 | * daemon's select()/poll()/etc. | ||
37 | * | ||
38 | * @param connection the upgraded connection | ||
39 | */ | ||
40 | void | ||
41 | MHD_connection_finish_forward_ (struct MHD_Connection *connection) | ||
42 | MHD_NONNULL (1); | ||
43 | |||
44 | #endif | ||