| 54 | } |
| 55 | |
| 56 | UdpServer::UdpServer(HostAddressWithPort const& address) |
| 57 | : m_hostAddress(address), m_listenSocket(make_shared<UdpSocket>(m_hostAddress.address().mode())) { |
| 58 | m_listenSocket->setNonBlocking(true); |
| 59 | m_listenSocket->bind(m_hostAddress); |
| 60 | Logger::debug("UdpServer listening on: {}", m_hostAddress); |
| 61 | } |
| 62 | |
| 63 | UdpServer::~UdpServer() { |
| 64 | close(); |
nothing calls this directly
no test coverage detected