blob: 53debd7805a283ee2d5fb71b5ab3882a0441e645 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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++ ;
}
|