// Copyright (2019-2022) Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-or-later #ifndef JUNGFRAUJOCH_UDPRECEIVER_H #define JUNGFRAUJOCH_UDPRECEIVER_H #include #include "ProcessJFPacket.h" class UdpReceiver { std::vector> futures; bool cancel = false; void Run(uint16_t udp_port_number, ProcessJFPacket *process); public: UdpReceiver(uint16_t udp_port_number, ProcessJFPacket &process, uint32_t nthreads); ~UdpReceiver(); }; #endif //JUNGFRAUJOCH_UDPRECEIVER_H