|
CSCE 412 - Project 3 Load Balancer
|
A class to represent a network request. More...
#include <request.h>
Public Member Functions | |
| Request () | |
| Default constructor for Request. | |
| Request (const std::string &ip_in, const std::string &ip_out, int time, char type, int arrival) | |
| Parameterized constructor for Request. | |
| std::string | getIpIn () const |
| Gets the input IP address of the request. | |
| std::string | getIpOut () const |
| Gets the output IP address of the request. | |
| int | getProcessTime () const |
| Gets the processing time of the request. | |
| char | getJobType () const |
| Gets the job type of the request. | |
| int | getArrivalTime () const |
| Gets the arrival time of the request. | |
A class to represent a network request.
The Request class encapsulates the details of a network request, including the input and output IP addresses, processing time, job type, and arrival time.
| Request::Request | ( | ) |
| Request::Request | ( | const std::string & | ip_in, |
| const std::string & | ip_out, | ||
| int | time, | ||
| char | type, | ||
| int | arrival ) |
Parameterized constructor for Request.
Initializes a Request object with the specified input IP, output IP, processing time, job type, and arrival time.
| ip_in | The input IP address for the request. |
| ip_out | The output IP address for the request. |
| time | The processing time for the request. |
| type | The job type (character P for processing, S for streaming). |
| arrival | The arrival time of the request. |
| int Request::getArrivalTime | ( | ) | const |
Gets the arrival time of the request.
| std::string Request::getIpIn | ( | ) | const |
Gets the input IP address of the request.
| std::string Request::getIpOut | ( | ) | const |
Gets the output IP address of the request.
| char Request::getJobType | ( | ) | const |
Gets the job type of the request.
| int Request::getProcessTime | ( | ) | const |
Gets the processing time of the request.