Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
TcpClient.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_COMMS_IP_TCPCLIENT_HPP_
2#define IV_SRC_COMMS_IP_TCPCLIENT_HPP_
3
6
7namespace iv::comms::ip
8{
9
11{
12public:
13 TcpClient();
14 TcpClient(const TcpClient &other) = delete;
15 TcpClient(TcpClient &&other) = delete;
16
17 TcpClient operator=(const TcpClient &other) = delete;
18 TcpClient operator=(TcpClient &&other) = delete;
19
20 iv::comms::eResponse ctrlReceive(std::vector<std::byte> &buffer, iv::types::ipAddress *ip,
21 iv::types::ipPort *port) override;
22 iv::comms::eResponse ctrlSend(const std::vector<std::byte> &buffer, iv::types::ipAddress ip,
23 iv::types::ipPort port) override;
24
25private:
26 iv::comms::eResponse ctrlStart(const std::string &ip, uint64_t port) override;
28
31};
32
34
35}// namespace iv::comms::ip
36
37#endif//IV_SRC_COMMS_IP_TCPCLIENT_HPP_
Definition CConnectorSocket.hpp:43
Definition ITransportProtocol.hpp:13
Definition TcpClient.hpp:11
TcpClient operator=(const TcpClient &other)=delete
TcpClient(const TcpClient &other)=delete
TcpClient(TcpClient &&other)=delete
iv::comms::eResponse ctrlStop() override
Definition TcpClient.cpp:91
bool m_isBroadcast
Definition TcpClient.hpp:30
iv::comms::eResponse ctrlStart(const std::string &ip, uint64_t port) override
Definition TcpClient.cpp:70
TcpClient operator=(TcpClient &&other)=delete
TcpClient()
Definition TcpClient.cpp:6
ConnectorTcp * m_conn
Definition TcpClient.hpp:29
iv::comms::eResponse ctrlSend(const std::vector< std::byte > &buffer, iv::types::ipAddress ip, iv::types::ipPort port) override
Definition TcpClient.cpp:51
iv::comms::eResponse ctrlReceive(std::vector< std::byte > &buffer, iv::types::ipAddress *ip, iv::types::ipPort *port) override
Definition TcpClient.cpp:11
Definition enums.hpp:5
eResponse
Definition enums.hpp:285
uint16_t ipPort
Definition types.hpp:41
std::string ipAddress
Definition types.hpp:40