1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:57:45 +00:00

LibC+LookupServer: Compute magic number to avoid hardcoding

This commit is contained in:
Ben Wiederhake 2021-11-01 16:00:07 +01:00 committed by Ali Mohammad Pur
parent 0d6c8afa4e
commit 34a8ee6da5
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,5 @@
endpoint LookupServer [magic=9001]
// Keep the name synchronized with LibC/netdb.cpp, constant 'lookup_server_endpoint_magic'.
endpoint LookupServer
{
lookup_name(String name) => (int code, Vector<String> addresses)
lookup_address(String address) => (int code, String name)