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

http_server_state Struct Reference


Detailed Description

All the necessary information for HTTP session state management by the HTTP server is stored here. See individual field documentation for more info.

Definition at line 104 of file http_server.h.

Data Fields

UINT8 state
 Session state.

UINT8 ownersocket
 TCP socket used for TCP communication.

UINT32 fstart
 File start.

UINT32 flen
 File length.

UINT32 fpoint
 File pointer.

UINT16 funacked
 Number of unacknowledged HTTP bytes previously sent.


Field Documentation

UINT8 http_server_state::state
 

This variable holds current sessions' state which can be one of the following:

Definition at line 113 of file http_server.h.

Referenced by https_init().

UINT8 http_server_state::ownersocket
 

This variable holds a handle to TCP socket that is used to achieve data transfer.

Definition at line 120 of file http_server.h.

Referenced by https_init().

UINT32 http_server_state::fstart
 

This variable holds information about the file start address. This is highlyconfiguration-dependant (file system chosen, etc..)

File address can not start from zero!!! (Data won't be sent by HTTP server in this case)

Definition at line 130 of file http_server.h.

Referenced by https_init().

UINT32 http_server_state::flen
 

This variable holds file length information. It is used by the HTTP server to determine when the entire file has been sent.

Definition at line 137 of file http_server.h.

Referenced by https_init().

UINT32 http_server_state::fpoint
 

Pointer to a current position inside the file that is beeing sent over the appropriate HTTP session.

Definition at line 144 of file http_server.h.

Referenced by https_init().

UINT16 http_server_state::funacked
 

This variable holds information about the number of previously sent and still unacknowledged bytes. This is needed to reliably determine, in case data needs to be regenerated, how much bytes to regenerate or, in case data has been acknowledged, how much to advance the fpoint variable.

Definition at line 154 of file http_server.h.

Referenced by https_init().


The documentation for this struct was generated from the following file:
Generated on Sun Aug 3 20:33:01 2003 for OpenTCP by doxygen1.2.18