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:
parent
3da0c072f4
commit
0cca6cef95
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