Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

/opentcp/http/http_server.c File Reference


Detailed Description

Author:
Version:
1.0
Date:
9.10.2002
Bug:
Warning:
Todo:

This file implements a simple http 1.0 server that can manage several simultaneous HTTP connections.

Definition in file http_server.c.

Go to the source code of this file.

Functions

INT8 https_init (void)
 Initialize HTTP server variables.


Variables

UINT8 https_enabled = 0
http_server_state https [NO_OF_HTTP_SESSIONS]
 Used for storing state information about different HTTP sessions.


Function Documentation

INT8 https_init void   
 

Author:
Date:
13.10.2002
This function should be called before the HTTP Server application is used to set the operating parameters of it

Definition at line 93 of file http_server.c.

References http_server_state::flen, http_server_state::fpoint, http_server_state::fstart, http_server_state::funacked, https_enabled, HTTPS_SERVERPORT, HTTPS_STATE_FREE, http_server_state::ownersocket, RESET_SYSTEM, http_server_state::state, TCP_DEF_TOUT, tcp_getsocket(), tcp_listen(), TCP_TOS_NORMAL, and TCP_TYPE_SERVER.


Variable Documentation

UINT8 https_enabled = 0
 

Defines whether https_init has already been invoked or not

Definition at line 75 of file http_server.c.

Referenced by https_init().

struct http_server_state https[NO_OF_HTTP_SESSIONS]
 

This is an array of http_server_state structures holding various state information about the HTTP sessions. HTTP server uses this information to determine actions that need to be taken on sockets.

Definition at line 83 of file http_server.c.


Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by doxygen1.2.18