C
typedef struct { DWORD byteCount; DWORD nextCallback; DWORD callbackID; DWORD callbackPos; BYTE * ptrData; BYTE * ptrRead; MPFS_HANDLE file; MPFS_HANDLE offsets; BYTE hasArgs; BYTE isAuthorized; HTTP_STATUS httpStatus; HTTP_FILE_TYPE fileType; BYTE data[HTTP_MAX_DATA_LEN]; BYTE smPost; } HTTP_CONN;
Description
Stores extended state data for each connection
Members
|
Members |
Description |
|
DWORD byteCount; |
How many bytes have been read so far |
|
DWORD nextCallback; |
Byte index of the next callback |
|
DWORD callbackID; |
Callback ID to execute, also used as watchdog timer |
|
DWORD callbackPos; |
Callback position indicator |
|
BYTE * ptrData; |
Points to first free byte in data |
|
BYTE * ptrRead; |
Points to current read location |
|
MPFS_HANDLE file; |
File pointer for the file being served |
|
MPFS_HANDLE offsets; |
File pointer for any offset info being used |
|
BYTE hasArgs; |
True if there were get or cookie arguments |
|
BYTE isAuthorized; |
0x00-0x79 on fail, 0x80-0xff on pass |
|
HTTP_STATUS httpStatus; |
Request method/status |
|
HTTP_FILE_TYPE fileType; |
File type to return with Content-Type |
|
BYTE data[HTTP_MAX_DATA_LEN]; |
General purpose data buffer |
|
BYTE smPost; |
POST state machine variable |