taskrambler  v0.1.8
Web server and task management solution.
header_size_get.c File Reference
#include <search.h>
#include <string.h>
#include <sys/types.h>
#include "http/message.h"
#include "http/response.h"
#include "http/header.h"
#include "http/interface/http_intro.h"
#include "hash.h"
+ Include dependency graph for header_size_get.c:

Go to the source code of this file.

Functions

static void addHeaderSize (const void *node)
 
size_t httpMessageHeaderSizeGet (HttpMessage message)
 

Variables

static size_t size
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file header_size_get.c.

Function Documentation

static void addHeaderSize ( const void *  node)
inlinestatic

Definition at line 38 of file header_size_get.c.

References size.

Referenced by httpMessageHeaderSizeGet().

39 {
40  size += ((HttpHeader)node)->size;
41 }
static size_t size

+ Here is the caller graph for this function:

size_t httpMessageHeaderSizeGet ( HttpMessage  message)

Definition at line 44 of file header_size_get.c.

References addHeaderSize(), hashEach(), httpIntroSizeGet(), and size.

Referenced by httpWriterWrite().

45 {
46  size = httpIntroSizeGet(message);
47 
48  hashEach(message->header, addHeaderSize);
49  size += 2;
50 
51  return size;
52 }
static size_t size
static void addHeaderSize(const void *node)
void hashEach(Hash, void(*)(const void *))
Definition: each.c:38
size_t httpIntroSizeGet(void *)
Definition: i_http_intro.c:32

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation