ladybird/Userland/Services/LookupServer
Sam Atkins 3b1e063d30 LibCore+Everywhere: Make Core::Stream::read() return Bytes
A mistake I've repeatedly made is along these lines:
```c++
auto nread = TRY(source_file->read(buffer));
TRY(destination_file->write(buffer));
```

It's a little clunky to have to create a Bytes or StringView from the
buffer's data pointer and the nread, and easy to forget and just use
the buffer. So, this patch changes the read() function to return a
Bytes of the data that were just read.

The other read_foo() methods will be modified in the same way in
subsequent commits.

Fixes #13687
2022-04-16 13:27:51 -04:00
..
CMakeLists.txt LookupServer: Move DNS related code into new LibDNS library 2022-04-15 16:34:26 +01:00
ConnectionFromClient.cpp LibDNS: Remove the 'DNS' prefix from the various type and class names 2022-04-15 16:34:26 +01:00
ConnectionFromClient.h Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
DNSServer.cpp LibDNS: Remove the 'DNS' prefix from the various type and class names 2022-04-15 16:34:26 +01:00
DNSServer.h LookupServer: Convert to Core::Stream::UDPSocket 2022-02-14 11:44:09 +01:00
LookupClient.ipc Userland: Remove dummy IPC methods 2021-06-24 00:38:58 +02:00
LookupServer.cpp LibCore+Everywhere: Make Core::Stream::read() return Bytes 2022-04-16 13:27:51 -04:00
LookupServer.h LibDNS: Remove the 'DNS' prefix from the various type and class names 2022-04-15 16:34:26 +01:00
LookupServer.ipc LibC+LookupServer: Use u32 for the endpoint magic 2021-11-05 00:17:01 +03:30
main.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
MulticastDNS.cpp LibDNS: Remove the 'DNS' prefix from the various type and class names 2022-04-15 16:34:26 +01:00
MulticastDNS.h LibDNS: Remove the 'DNS' prefix from the various type and class names 2022-04-15 16:34:26 +01:00