49 const int &messageCode);
57 bool initiate,
bool client);
64 const QString &domain,
65 const Port &destPort);
79 Host *m_host{
nullptr};
Represents a network host that can communicate through routers.
Definition host.h:32
Represents an IPv4 address.
Definition ipaddress.h:27
Represents a network package.
Definition package.h:28
Represents a network port.
Definition port.h:24
Represents a network process.
Definition process.h:28
Package generateHandShakePackage(const IPAddress &address, bool initiate, bool client)
Generates a TCP handshake package.
Definition process.cpp:34
Process()=default
Default constructor.
QString name() const
Retrieves the process's name.
Definition process.cpp:192
Package generateDNSResponsePackage(const IPAddress &destination, const QString &domain, const Port &destPort)
Generates a DNS response package.
Definition process.cpp:164
Package generateDNSRequestPackage(const QString &domain)
Generates a DNS request package.
Definition process.cpp:148
QString toString() const
Retrieves a string representation of the process.
Definition process.cpp:196
Socket & socket()
Retrieves an editable associated socket reference.
Definition process.cpp:202
Package generateCloseConnectionPackage(const IPAddress &address, bool initiate, bool client)
Generates a TCP connection close package.
Definition process.cpp:107
Package generateHTTPResponsePackage(const IPAddress &destination, const Port &destPort, const int &messageCode)
Generates an HTTP response package.
Definition process.cpp:75
void setHost(Host *host)
Sets the associated host.
Definition process.cpp:194
Package generateHTTPRequestPackage(const QString &uri, const IPAddress &destination)
Generates an HTTP request package.
Definition process.cpp:13
Represents a networking socket for transmitting and receiving data.
Definition socket.h:27
Contains the IPAddress class definition.
Contains the Socket class definition.