From 180dc6c699199dc884f97a3ed07b9aab32e44ad0 Mon Sep 17 00:00:00 2001 From: 3lswear Date: Sat, 29 Jan 2022 23:52:28 +0300 Subject: [PATCH] feat: getCounter --- src/Client/Client.cpp | 5 +++++ src/Client/Client.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/src/Client/Client.cpp b/src/Client/Client.cpp index c73ae00..7fa2eb6 100644 --- a/src/Client/Client.cpp +++ b/src/Client/Client.cpp @@ -47,6 +47,11 @@ int Client::getFd(void) return _fd; } +unsigned int Client::getCounter(void) const +{ + return _sended; +} + void Client::setRawData(char *str) { this->_buff = str; diff --git a/src/Client/Client.hpp b/src/Client/Client.hpp index 965f77f..503bf6f 100644 --- a/src/Client/Client.hpp +++ b/src/Client/Client.hpp @@ -30,6 +30,7 @@ public: Request getRequest(void); Response getResponse(void); std::string getStrToSend(void); + unsigned int getCounter(void) const; void setRawData(char *); void setFd(int); int getFd(void);