aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-02-16 06:30:29 +0100
committerChristian Grothoff <christian@grothoff.org>2018-02-16 06:30:29 +0100
commit6450f55f0c18d7a4b2fac829d9eff5d567348d19 (patch)
tree63a062752ac68f9339d31f455e01a36059cc5943 /src/include
parent552f3aa7b23b958c8ad275fbf28682f229dbc4f7 (diff)
downloadlibmicrohttpd-6450f55f0c18d7a4b2fac829d9eff5d567348d19.tar.gz
libmicrohttpd-6450f55f0c18d7a4b2fac829d9eff5d567348d19.zip
add upgrade_process.c
Diffstat (limited to 'src/include')
-rw-r--r--src/include/microhttpd2.h7
-rw-r--r--src/include/microhttpd_tls.h22
2 files changed, 29 insertions, 0 deletions
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
index 91b0074b..6b2f59fd 100644
--- a/src/include/microhttpd2.h
+++ b/src/include/microhttpd2.h
@@ -422,6 +422,13 @@ enum MHD_StatusCode
422 */ 422 */
423 MHD_SC_POOL_MALLOC_FAILURE = 30010, 423 MHD_SC_POOL_MALLOC_FAILURE = 30010,
424 424
425 /**
426 * We failed to forward data from a Web socket to the
427 * application to the remote side due to the socket
428 * being closed prematurely. (May be transient.)
429 */
430 MHD_SC_UPGRADE_FORWARD_INCOMPLETE = 30011,
431
425 432
426 /** 433 /**
427 * MHD does not support the requested combination of 434 * MHD does not support the requested combination of
diff --git a/src/include/microhttpd_tls.h b/src/include/microhttpd_tls.h
index 58734837..0a9d1793 100644
--- a/src/include/microhttpd_tls.h
+++ b/src/include/microhttpd_tls.h
@@ -91,6 +91,28 @@ struct MHD_TLS_Plugin
91 ...); 91 ...);
92 92
93 93
94 ssize_t
95 (*send)(void *cls,
96 struct MHD_TLS_ConnectionState *cs,
97 const void *buf,
98 size_t buf_size);
99
100
101 ssize_t
102 (*recv)(void *cls,
103 struct MHD_TLS_ConnectionState *cs,
104 void *buf,
105 size_t buf_size);
106
107
108 const char *
109 (*strerror)(void *cls,
110 int ec);
111
112 enum MHD_Bool
113 (*check_record_pending)(void *cls,
114 struct MHD_TLS_ConnectionState *cs);
115
94 enum MHD_Bool 116 enum MHD_Bool
95 (*shutdown_connection) (void *cls, 117 (*shutdown_connection) (void *cls,
96 struct MHD_TLS_ConnectionState *cs); 118 struct MHD_TLS_ConnectionState *cs);