#include "../Interface/Types.h" #include "../Interface/Thread.h" #include #include class IPipe; struct CBuffer { CBuffer(char *pBuf, size_t pBsize): buf(pBuf), bsize(pBsize) { rcount=0;offset=0;} char *buf; size_t bsize; int *rcount; int offset; }; class CHTTPProxy : public IThread { public: CHTTPProxy(std::string pHttp_method, std::string pHttp_query, int pHttp_version, const std::string pPOSTStr, const str_nmap &pRawPARAMS, IPipe *pOutput, IPipe *pNotify, IPipe *pTimeoutPipe); void operator()(void); private: std::string http_method; std::string http_query; int http_version; std::string POSTStr; str_nmap RawPARAMS; IPipe *notify; IPipe *timeoutpipe; std::vector timeouts; std::vector output; std::vector sync; std::vector< std::queue > output_buffer; };