HLCC Documentation 3.0.0
Loading...
Searching...
No Matches
rtcccssimUdpSenRec.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020-2025 European Southern Observatory (ESO)
2//
3// SPDX-License-Identifier: LGPL-3.0-only
4
13#ifndef HLCC_TELIF_TELIF_RTCCCSSIM_UDP_SENDER_RECEIVER_HPP
14#define HLCC_TELIF_TELIF_RTCCCSSIM_UDP_SENDER_RECEIVER_HPP
15#include <string>
16#include <cstdint>
17#include <arpa/inet.h>
18#include <optional>
19namespace hlcc::telif {
20
22 public:
23 RtcccssimUdpSenRec(const std::string udp_ip, const uint32_t udp_port);
25 bool SendCommand(const std::string command);
26 std::optional<std::string> Receive();
27
28 private:
29 int m_socket;
30 struct sockaddr_in m_sock_addr;
31
32};
33}
34
35#endif
~RtcccssimUdpSenRec()
Definition rtcccssimUdpSenRec.cpp:31
std::optional< std::string > Receive()
Definition rtcccssimUdpSenRec.cpp:39
bool SendCommand(const std::string command)
Definition rtcccssimUdpSenRec.cpp:34
RtcccssimUdpSenRec(const std::string udp_ip, const uint32_t udp_port)
Definition rtcccssimUdpSenRec.cpp:21
Definition configTest.cpp:22