mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
LibCore+LookupServer: Implement and use UDPServer::send
This commit is contained in:
parent
3da0c072f4
commit
0cca6cef95
Notes:
sideshowbarker
2024-07-17 22:43:01 +09:00
Author: https://github.com/sin-ack
Commit: 0cca6cef95
Pull-request: https://github.com/SerenityOS/serenity/pull/9977
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
5 changed files with 25 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue