Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ITransportProtocol.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_COMMS_IP_ITRANSPORTPROTOCOL_HPP_
2#define IV_SRC_COMMS_IP_ITRANSPORTPROTOCOL_HPP_
3
5#include "comms/enums.hpp"
6
7#include <string>
8
9namespace iv::comms::ip
10{
11
13{
14public:
15 virtual ~ITransportProtocol() = default;
16
17 virtual iv::comms::eResponse ctrlStart(const std::string &ip, uint64_t port) = 0;
19
20 virtual iv::comms::eResponse ctrlReceive(std::vector<std::byte> &buffer, iv::types::ipAddress *ip,
21 iv::types::ipPort *port) = 0;
22 virtual iv::comms::eResponse ctrlSend(const std::vector<std::byte> &buffer, iv::types::ipAddress ip,
23 iv::types::ipPort port) = 0;
24};
25
26}// namespace iv::comms::ip
27
28#endif//IV_SRC_COMMS_IP_ITRANSPORTPROTOCOL_HPP_
Definition ITransportProtocol.hpp:13
virtual iv::comms::eResponse ctrlStop()=0
virtual iv::comms::eResponse ctrlStart(const std::string &ip, uint64_t port)=0
virtual ~ITransportProtocol()=default
virtual iv::comms::eResponse ctrlReceive(std::vector< std::byte > &buffer, iv::types::ipAddress *ip, iv::types::ipPort *port)=0
virtual iv::comms::eResponse ctrlSend(const std::vector< std::byte > &buffer, iv::types::ipAddress ip, iv::types::ipPort port)=0
Definition enums.hpp:5
eResponse
Definition enums.hpp:285
uint16_t ipPort
Definition types.hpp:41
std::string ipAddress
Definition types.hpp:40