mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
feat: getCounter
This commit is contained in:
@@ -47,6 +47,11 @@ int Client::getFd(void)
|
|||||||
return _fd;
|
return _fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned int Client::getCounter(void) const
|
||||||
|
{
|
||||||
|
return _sended;
|
||||||
|
}
|
||||||
|
|
||||||
void Client::setRawData(char *str)
|
void Client::setRawData(char *str)
|
||||||
{
|
{
|
||||||
this->_buff = str;
|
this->_buff = str;
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ public:
|
|||||||
Request getRequest(void);
|
Request getRequest(void);
|
||||||
Response getResponse(void);
|
Response getResponse(void);
|
||||||
std::string getStrToSend(void);
|
std::string getStrToSend(void);
|
||||||
|
unsigned int getCounter(void) const;
|
||||||
void setRawData(char *);
|
void setRawData(char *);
|
||||||
void setFd(int);
|
void setFd(int);
|
||||||
int getFd(void);
|
int getFd(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user