1#ifndef TCPSERVERCONNECTIONCLOSESTRATEGY_H
2#define TCPSERVERCONNECTIONCLOSESTRATEGY_H
Represents a network host that can communicate through routers.
Definition host.h:32
Interface for defining strategies to handle packages.
Definition ipackagestrategy.h:27
Represents a network package.
Definition package.h:28
Definition tcpserverconnectionclosestrategy.h:25
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.
Definition tcpserverconnectionclosestrategy.cpp:8
TCPServerConnectionCloseStrategy()=default
Default constructor.
Contains the IPackageStrategy interface definition.