dev(UML-1462): Добавлен select в интерфейс UDPServerIFace

This commit is contained in:
algin 2023-07-17 18:06:31 +03:00
parent 75b28d8ab9
commit 0f0b83702c
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public:
virtual uint32_t Sender(uint8_t * p_data, size_t scatter_segment) override;
int32_t select(uint32_t ticks = SystemP_WAIT_FOREVER)
virtual int32_t select(uint32_t ticks = SystemP_WAIT_FOREVER) override
{
return rx_sem_.pend(ticks);
}

View File

@ -1,7 +1,7 @@
/*
* eth_udp_server_iface.hpp
*
* Created on: 15 ìàð. 2023 ã.
* Created on: 15 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
* Author: sychev
*/
@ -19,6 +19,7 @@ namespace free_rtos {
class EthUdpServerIface {
public:
virtual std::shared_ptr<EthUpdClient> createClient(uint16_t port_dst, uint16_t port_src, bool use_chksum) = 0;
virtual int32_t select(uint32_t ticks = SystemP_WAIT_FOREVER) = 0;
virtual ~EthUdpServerIface() {};
};