C/C++ Reference
HttpAsynchReqResp Struct Reference

Simultaneously receive and send a stream of data. More...

#include <HttpAsynchReq.h>

Inheritance diagram for HttpAsynchReqResp:
Collaboration diagram for HttpAsynchReqResp:

List of all members.

Public Member Functions

 HttpAsynchReqResp (HttpServer *server, HttpAsynchReq_OnData onData)
 Create a HttpAsynchReqResp instance.
int start (HttpRequest *req, void *recBuf, S32 recBufSize, void *sendBuf, S32 sendBufSize)
 Start the HttpAsynchReqResp object.
int startResp (HttpRequest *req, void *sendBuf, S32 sendBufSize)
 Start response if you know that all data was received by the web-server.
ThreadMutexgetMutex ()
 Get the dispatcher lock.
HttpServergetServer ()
 Get the HttpServer object.
HttpAsynchRespgetResponse ()
 Get the response object.

Detailed Description

Simultaneously receive and send a stream of data.

The HttpAsynchReqResp class makes it possible to asynchronously receive and send data at the same time. The HttpAsynchReqResp can also be used as a replacement for using a HttpAsynchReq and HttpAsynchResp object. An HttpAsynchReqResp instance is easier to use than first using a HttpAsynchReq object for receiving data and then later using a HttpAsynchResp for sending a response message.