72 bool hasActiveRequest =
false;
73 int processedRequestCount = 0;
A class to represent a network request.
Definition request.h:15
A class to represent a server that processes a request.
Definition webserver.h:23
WebServer(char name)
Constructs a WebServer with a specified name.
Definition webserver.cpp:11
bool isIdle() const
Checks if the server is currently idle.
Definition webserver.cpp:86
void incrementProcessedRequestCount()
Increments the count of processed requests.
Definition webserver.cpp:68
char getName() const
Gets the name of the server.
Definition webserver.cpp:95
bool isRequestDone(int currTime)
Checks if the current request is done processing.
Definition webserver.cpp:46
void addRequest(Request req, int currTime)
Adds a request to the server's queue.
Definition webserver.cpp:25
int getProcessedRequestCount() const
Gets the count of processed requests.
Definition webserver.cpp:77