|
Cade Royal CSCE 412 Project 3
|
Implementation of the WebServer class. More...
#include "WebServer.h"#include <iostream>#include <cstring>#include <thread>#include <chrono>#include <cstdlib>#include <mutex>
Functions | |
| std::string | generateRandomIP () |
| Generates a random IP address. | |
Implementation of the WebServer class.
This file contains the implementation of the WebServer class, which simulates a web server that processes requests. The server can start, stop, and handle incoming requests in a thread-safe manner.
| std::string generateRandomIP | ( | ) |
Generates a random IP address.
This function generates a random IPv4 address in the format "A.B.C.D", where A, B, C, and D are integers between 0 and 255.