add: client life time

This commit is contained in:
Talyx
2022-02-21 18:37:48 +03:00
parent 582310c70d
commit e107b2a3e5
5 changed files with 94 additions and 10 deletions

View File

@@ -250,6 +250,11 @@ bool Client::TimeToDie(void)
return (false);
}
serverListen Client::getIpPort()
{
return (connected_to);
}
void Client::updateTimeToDie(void)
{
gettimeofday(&_time, NULL);

View File

@@ -60,6 +60,7 @@ public:
bool isEmpty(void);
bool TimeToDie(void);
void updateTimeToDie(void);
serverListen getIpPort(void);
public:
int parseRequest(void);