Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

HttpDataRead Class Reference

List of all members.

Static Public Member Functions

int readChunkedPostData (char *inBuffer, u_long *inBufferPos, u_long inBufferSize, Socket *inSocket, char *outBuffer, u_long outBufferSize, u_long *nbr, u_long timeout, File *out)
int readContiguousPrimitivePostData (char *inBuffer, u_long *inBufferPos, u_long inBufferSize, Socket *inSocket, char *outBuffer, u_long outBufferSize, u_long *nbr, u_long timeout)
int readPostData (HttpThreadContext *td, int *ret)

Member Function Documentation

int HttpDataRead::readChunkedPostData char *  inBuffer,
u_long *  inBufferPos,
u_long  inBufferSize,
Socket inSocket,
char *  outBuffer,
u_long  outBufferSize,
u_long *  outNbr,
u_long  timeout,
File out
[static]
 

Read post data using the chunked transfer encoding. This function uses the same arguments of readContiguousPrimitivePostData with the additional destination file.

Parameters:
inBuffer Memory buffer with first part of POST data.
inBufferPos inBuffer size, this value is modified by the function, has to be 0 on first call.
inBufferSize inBuffer size.
inSocket Connection socket to read from.
outBuffer Out buffer where write.
outBufferSize outBuffer size.
outNbr Number of bytes read.
timeout Timeout value to use on the socket.
Returns:
Return 0 on success.

-1 on internal error.

Any other value is the HTTP error code.

int HttpDataRead::readContiguousPrimitivePostData char *  inBuffer,
u_long *  inBufferPos,
u_long  inBufferSize,
Socket inSocket,
char *  outBuffer,
u_long  outBufferSize,
u_long *  nbr,
u_long  timeout
[static]
 

Read primitive post data as it is sent by the client without apply any filter in a contiguous manner, first read from the memory buffer and after from the socket.

Parameters:
inBuffer Memory buffer with first part of POST data.
inBufferPos inBuffer size, this value is modified by the function, has to be 0 on first call.
inBufferSize inBuffer size.
inSocket Connection socket to read from.
outBuffer Out buffer where write.
outBufferSize outBuffer size.
nbr Number of bytes read.
timeout Timeout value to use on the socket.
Returns:
Return 0 on success.

int HttpDataRead::readPostData HttpThreadContext td,
int *  httpRetCode
[static]
 

Read POST data from the active connection.

Parameters:
td The Active thread context.
httpRetCode The HTTP error to report to the client.
Returns:
Return 0 on success.

Return -1 on irreversible error and the connection should be removed immediately.

Any other value is a protocol error specified in HTTPRETCODE.


Generated on Thu May 1 12:41:01 2008 for MyServer by  doxygen 1.3.9.1