Ai
1 Star 0 Fork 0

wangcichen/urbackup_backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Client.h 881 Bytes
一键复制 编辑 原始数据 按行查看 历史
Martin Raiber 提交于 2011-01-07 08:05 +08:00 . Fixed build system
#include "socket_header.h"
#include "Interface/Mutex.h"
#include <deque>
class FCGIProtocolDriver;
class OutputCallback;
class FCGIRequest;
class CClient
{
public:
CClient();
~CClient();
SOCKET getSocket();
OutputCallback *getOutputCallback();
FCGIProtocolDriver *getFCGIProtocolDriver();
void addRequest( FCGIRequest* req);
bool removeRequest( FCGIRequest *req);
size_t numRequests(void);
FCGIRequest* getRequest(size_t num);
FCGIRequest* getAndRemoveReadyRequest(void);
bool isProcessing(void);
bool setProcessing(bool b);
void set(SOCKET ps, OutputCallback *poutput, FCGIProtocolDriver * pdriver );
void lock();
void unlock();
void remove();
private:
SOCKET s;
OutputCallback * output;
FCGIProtocolDriver * driver;
bool processing;
IMutex * mutex;
IScopedLock *m_lock;
std::deque<FCGIRequest*> requests;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wangcichen/urbackup_backend.git
git@gitee.com:wangcichen/urbackup_backend.git
wangcichen
urbackup_backend
urbackup_backend
dev

搜索帮助