aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_beginrequest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtipidee/tipidee_fcgi_beginrequest.c')
-rw-r--r--src/libtipidee/tipidee_fcgi_beginrequest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_fcgi_beginrequest.c b/src/libtipidee/tipidee_fcgi_beginrequest.c
new file mode 100644
index 0000000..8a5a9a9
--- /dev/null
+++ b/src/libtipidee/tipidee_fcgi_beginrequest.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <tipidee/fcgi.h>
+
+int tipidee_fcgi_beginrequest (tipidee_fcgi *fc, tain *stamp)
+{
+ char body[8] = { 0, FCGI_RESPONDER, FCGI_KEEP_CONN, 0, 0, 0, 0, 0 } ;
+ return tipidee_fcgi_put(fc, FCGI_BEGIN_REQUEST, body, 8, stamp) == 8 ;
+}