add: struct timeval in Client class, and lifeTime in Request

This commit is contained in:
Talyx
2022-02-01 18:34:50 +03:00
parent f8343098e8
commit 0efe9d1bc3
5 changed files with 28 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ private:
private:
int _ret;
int _fd;
struct timeval _time;
unsigned int _sended;
char *_buff;
@@ -39,7 +40,8 @@ public:
int getFd(void);
unsigned int getRecvCounter(void) const;
bool isEmpty(void);
bool TimeToDie(void);
void updateTimeToDie(void);
public:
int parseRequest(void);