feat: add recvCounter, allRecved

This commit is contained in:
3lswear
2022-01-30 15:26:01 +03:00
parent a3abe505eb
commit 0d8b0e7636
2 changed files with 35 additions and 1 deletions

View File

@@ -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();