fix: remove const qualifier from respond and poll methods in Client class
This commit is contained in:
parent
f146f41bb8
commit
77e09f43ed
@ -39,8 +39,8 @@ class Client
|
|||||||
~Client();
|
~Client();
|
||||||
|
|
||||||
void request();
|
void request();
|
||||||
void respond() const;
|
void respond();
|
||||||
void poll() const;
|
void poll();
|
||||||
|
|
||||||
[[nodiscard]] ASocket &getSocket(int fd = -1) const;
|
[[nodiscard]] ASocket &getSocket(int fd = -1) const;
|
||||||
|
|
||||||
@ -63,6 +63,7 @@ class Client
|
|||||||
std::unordered_map<int, ASocket *> sockets_;
|
std::unordered_map<int, ASocket *> sockets_;
|
||||||
|
|
||||||
Server &server_;
|
Server &server_;
|
||||||
|
long writeOffset_ = 0;
|
||||||
// void writeToCgi();
|
// void writeToCgi();
|
||||||
// void readFromCgi();
|
// void readFromCgi();
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue
Block a user