Represents a single network request with source/destination IPs, processing time, and job type.
More...
#include <Request.h>
|
| std::string | ipIn |
| | Source IP address of the request. More...
|
| |
| std::string | ipOut |
| | Destination IP address for the response. More...
|
| |
| int | time |
| | Processing time in clock cycles. More...
|
| |
| char | jobType |
| | Job type: 'P' for processing, 'S' for streaming. More...
|
| |
Represents a single network request with source/destination IPs, processing time, and job type.
Definition at line 14 of file Request.h.
◆ Request()
| Request::Request |
( |
std::string |
ipIn, |
|
|
std::string |
ipOut, |
|
|
int |
time, |
|
|
char |
jobType |
|
) |
| |
Constructs a Request with the given parameters.
- Parameters
-
| ipIn | Source IP address |
| ipOut | Destination IP address |
| time | Processing time in clock cycles |
| jobType | Job type character ('P' or 'S') |
Definition at line 9 of file Request.cpp.
◆ generateRandom()
| Request Request::generateRandom |
( |
int |
minTime, |
|
|
int |
maxTime |
|
) |
| |
|
static |
Generates a random Request with random IPs and a random processing time.
- Parameters
-
| minTime | Minimum processing time |
| maxTime | Maximum processing time |
- Returns
- A randomly generated Request
Definition at line 23 of file Request.cpp.
◆ generateRandomIP()
| std::string Request::generateRandomIP |
( |
| ) |
|
|
static |
Generates a random IP address string in dotted-decimal format.
- Returns
- A random IP address (e.g. "192.168.1.42")
Definition at line 16 of file Request.cpp.
◆ ipIn
| std::string Request::ipIn |
Source IP address of the request.
Definition at line 15 of file Request.h.
◆ ipOut
| std::string Request::ipOut |
Destination IP address for the response.
Definition at line 16 of file Request.h.
◆ jobType
Job type: 'P' for processing, 'S' for streaming.
Definition at line 18 of file Request.h.
◆ time
Processing time in clock cycles.
Definition at line 17 of file Request.h.
The documentation for this struct was generated from the following files: