| 
    NetSim 1.0.0
    
   An educational network simulation software for students 
   | 
 
#include <tcpserverconnectionclosestrategy.h>


Public Member Functions | |
| TCPServerConnectionCloseStrategy ()=default | |
| Default constructor.   | |
| virtual | ~TCPServerConnectionCloseStrategy ()=default | 
| Virtual destructor to ensure correct cleanup for derived classes.   | |
| void | handle (Package package, Host *host) const override | 
| Handles the TCP connection termination 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.   | |
      
  | 
  default | 
Default constructor.
Establishes a new instance of the TCPConnectionCloseStrategy.
      
  | 
  virtualdefault | 
Virtual destructor to ensure correct cleanup for derived classes.
Ensures that derived strategy objects related to TCP connection termination are properly destroyed.
      
  | 
  overridevirtual | 
Handles the TCP connection termination process.
| package | The package containing connection termination details. | 
| host | The context in which the strategy is invoked. | 
Based on the incoming package details, this method will generate the appropriate TCP termination packets (e.g., FIN, FIN-ACK) and route them through the network simulation.
Implements NetSim::IPackageStrategy.
