NetSim 1.0.0
An educational network simulation software for students
|
Implements the client-side TCP handshake strategy. More...
#include <tcpclienthandshakestrategy.h>
Public Member Functions | |
TCPClientHandshakeStrategy ()=default | |
Default constructor. | |
virtual | ~TCPClientHandshakeStrategy ()=default |
Default destructor. | |
void | handle (Package package, Host *host) const override |
Handles the package during the handshake process. | |
Public Member Functions inherited from NetSim::IPackageStrategy | |
IPackageStrategy ()=default | |
Default constructor. | |
virtual | ~IPackageStrategy ()=default |
Virtual destructor to ensure correct cleanup for derived classes. | |
virtual void | handle (Package package, Host *host) const =0 |
Abstract method for handling packages. | |
Implements the client-side TCP handshake strategy.
This strategy handles the client-side behavior during the initiation of a TCP connection. It defines how a package should be processed by a client when attempting to establish a connection to a server.
|
default |
Default constructor.
|
virtualdefault |
Default destructor.
|
overridevirtual |
Handles the package during the handshake process.
This method is responsible for processing the package intended to initiate the handshake. It retrieves the MAC address of the router associated with the connection, fetches the HTTP process from the client's host, and then sends the handshake package to the router.
Implements NetSim::IPackageStrategy.