mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:37:35 +00:00
LookupServer: Switch to LibIPC :^)
The ad-hoc IPC we were doing with LookupServer was kinda gross. With this, LookupServer is a regular IPC server. In the future, we want to add more APIs for LookupServer to talk to its clients (such as DHCPClient telling LookupServer about the DNS server discovered via DHCP, and DNS-SD client browsing for services), which calls for a more expressive IPC format; this is what LibIPC is perfect for. While the LookupServer side is using the regular LibIPC mechanics and patterns, the LibC side has to hand-roll LibIPC format serialization without actually using LibIPC. We might be able to get rid of this in the future, but for now it has to be like that. The good news is the format is not that bad at all.
This commit is contained in:
parent
314f966745
commit
547130584c
8 changed files with 273 additions and 74 deletions
5
Userland/Services/LookupServer/LookupServer.ipc
Normal file
5
Userland/Services/LookupServer/LookupServer.ipc
Normal file
|
@ -0,0 +1,5 @@
|
|||
endpoint LookupServer = 9001
|
||||
{
|
||||
LookupName(String name) => (int code, Vector<String> addresses)
|
||||
LookupAddress(String address) => (int code, String name)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue