Cade Royal CSCE 412 Project 3
Loading...
Searching...
No Matches
Functions
WebServer.cpp File Reference

Implementation of the WebServer class. More...

#include "WebServer.h"
#include <iostream>
#include <cstring>
#include <thread>
#include <chrono>
#include <cstdlib>
#include <mutex>
Include dependency graph for WebServer.cpp:

Functions

std::string generateRandomIP ()
 Generates a random IP address.
 

Detailed Description

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.

Function Documentation

◆ generateRandomIP()

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.

Returns
A string representing the generated random IP address.