mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
feat: add recvCounter, allRecved
This commit is contained in:
@@ -18,6 +18,7 @@ private:
|
||||
int _ret;
|
||||
int _fd;
|
||||
unsigned int _sended;
|
||||
unsigned int _received;
|
||||
char *_buff;
|
||||
|
||||
|
||||
@@ -37,6 +38,7 @@ public:
|
||||
void setRawData(char *);
|
||||
void setFd(int);
|
||||
int getFd(void);
|
||||
unsigned int getRecvCounter(void) const;
|
||||
|
||||
|
||||
public:
|
||||
@@ -46,11 +48,13 @@ public:
|
||||
|
||||
bool readyToSend(void);
|
||||
bool allSended(void);
|
||||
bool allRecved(void);
|
||||
bool isChunked(void);
|
||||
int sendResponse(int fd);
|
||||
int sendData(int , std::string data);
|
||||
void clear(void);
|
||||
void increaseCounter(void);
|
||||
void increaseRecvCounter(unsigned int n);
|
||||
std::string generateRespons(void);
|
||||
|
||||
Client();
|
||||
|
||||
Reference in New Issue
Block a user