NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
tcpclienthandshakestrategy.h
Go to the documentation of this file.
1#ifndef TCPCLIENTHANDSHAKESTRATEGY_H
2#define TCPCLIENTHANDSHAKESTRATEGY_H
3
4#include "ipackagestrategy.h"
5
9
10namespace NetSim {
11
14
25public:
30
34 virtual ~TCPClientHandshakeStrategy() = default;
35
47 void handle(Package package, Host *host) const override;
48};
49
50} // namespace NetSim
51
52#endif // TCPCLIENTHANDSHAKESTRATEGY_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
Implements the client-side TCP handshake strategy.
Definition tcpclienthandshakestrategy.h:24
TCPClientHandshakeStrategy()=default
Default constructor.
virtual ~TCPClientHandshakeStrategy()=default
Default destructor.
void handle(Package package, Host *host) const override
Handles the package during the handshake process.
Definition tcpclienthandshakestrategy.cpp:8
Contains the IPackageStrategy interface definition.
Definition logger.h:12