CSCE 412 - Project 3 Load Balancer
Loading...
Searching...
No Matches
request.h
Go to the documentation of this file.
1#ifndef REQUEST_H
2#define REQUEST_H
3
4#include <string>
5
6 //all doxygen comments are generated with AI assistance
7
8
15class Request {
16public:
22 Request();
23
36 Request(const std::string& ip_in, const std::string& ip_out, int time, char type, int arrival);
37
43 std::string getIpIn() const;
44
50 std::string getIpOut() const;
51
57 int getProcessTime() const;
58
64 char getJobType() const;
65
71 int getArrivalTime() const;
72
73private:
74 std::string ipIn;
75 std::string ipOut;
76 int processTime;
77 char jobType;
78 int arrivalTime;
79};
80
81#endif
A class to represent a network request.
Definition request.h:15
int getProcessTime() const
Gets the processing time of the request.
Definition request.cpp:45
std::string getIpIn() const
Gets the input IP address of the request.
Definition request.cpp:31
char getJobType() const
Gets the job type of the request.
Definition request.cpp:52
std::string getIpOut() const
Gets the output IP address of the request.
Definition request.cpp:38
int getArrivalTime() const
Gets the arrival time of the request.
Definition request.cpp:59
Request()
Default constructor for Request.
Definition request.cpp:9