1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:17:35 +00:00

LibCore+LookupServer: Implement and use UDPServer::send

This commit is contained in:
sin-ack 2021-09-11 20:11:30 +00:00 committed by Ali Mohammad Pur
parent 3da0c072f4
commit 0cca6cef95
5 changed files with 25 additions and 6 deletions

View file

@ -58,7 +58,9 @@ void DNSServer::handle_client()
response.set_code(DNSPacket::Code::NOERROR);
buffer = response.to_byte_buffer();
sendto(fd(), buffer.data(), buffer.size(), 0, (const sockaddr*)&client_address, sizeof(client_address));
// FIXME: We should be handling errors here.
[[maybe_unused]] auto result = send(buffer, client_address);
}
}