|
server 0.0.1
basicserverinfrastructure
|
#include "class.h"
Go to the source code of this file.
Classes | |
| struct | HttpHeader |
Functions | |
| HttpHeader | httpHeaderParse (char *line) |
| void | httpHeaderSort (const HttpHeader[], int) |
| char * | httpHeaderGet (const HttpHeader[], int, const char *) |
| char* httpHeaderGet | ( | const HttpHeader | [], |
| int | , | ||
| const char * | |||
| ) |
Definition at line 31 of file get.c.
{
unsigned long hash = sdbm((unsigned char *)name);
HttpHeader found;
found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp);
return (NULL != found)? found->value : NULL;
}

| HttpHeader httpHeaderParse | ( | char * | line | ) |
| void httpHeaderSort | ( | const HttpHeader | [], |
| int | |||
| ) |
Definition at line 14 of file sort.c.
{
qsort(header, nheader, sizeof(HttpHeader), comp);
}
