mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 21:38:00 +03:00
add: client life time
This commit is contained in:
@@ -250,6 +250,11 @@ bool Client::TimeToDie(void)
|
||||
return (false);
|
||||
}
|
||||
|
||||
serverListen Client::getIpPort()
|
||||
{
|
||||
return (connected_to);
|
||||
}
|
||||
|
||||
void Client::updateTimeToDie(void)
|
||||
{
|
||||
gettimeofday(&_time, NULL);
|
||||
|
||||
@@ -60,6 +60,7 @@ public:
|
||||
bool isEmpty(void);
|
||||
bool TimeToDie(void);
|
||||
void updateTimeToDie(void);
|
||||
serverListen getIpPort(void);
|
||||
public:
|
||||
int parseRequest(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user