diff options
Diffstat (limited to 'src/libtipidee/tipidee_fcgi_header_unpack.c')
| -rw-r--r-- | src/libtipidee/tipidee_fcgi_header_unpack.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_fcgi_header_unpack.c b/src/libtipidee/tipidee_fcgi_header_unpack.c new file mode 100644 index 0000000..53debd7 --- /dev/null +++ b/src/libtipidee/tipidee_fcgi_header_unpack.c @@ -0,0 +1,14 @@ +/* ISC license. */ + +#include <skalibs/uint16.h> + +#include <tipidee/fcgi.h> + +void tipidee_fcgi_header_unpack (char const *s, fcgi_header *hdr) +{ + hdr->version = *s++ ; + hdr->type = *s++ ; + uint16_unpack_big(s, &hdr->requestid) ; s += 2 ; + uint16_unpack_big(s, &hdr->len) ; s += 2 ; + hdr->padlen = *s++ ; +} |
