|
C/C++ Reference
|
Simultaneously receive and send a stream of data. More...
#include <HttpAsynchReq.h>


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. | |
| ThreadMutex * | getMutex () |
| Get the dispatcher lock. | |
| HttpServer * | getServer () |
| Get the HttpServer object. | |
| HttpAsynchResp * | getResponse () |
| Get the response object. | |
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.