summaryrefslogtreecommitdiff
path: root/Servers/LookupServer
AgeCommit message (Collapse)Author
2019-12-25Build: support library and generator dependenciesjoshua stein
Instead of directly manipulating LDFLAGS, set LIB_DEPS in each subdirectory Makefile listing the libraries needed for building/linking such as "LIB_DEPS = Core GUI Draw IPC Core". This adds each library as an -L and -l argument in LDFLAGS, but also adds the library.a file as a link dependency on the current $(PROGRAM). This causes the given library to be (re)built before linking the current $(PROGRAM), but will also re-link any binaries depending on that library when it is modified, when running make from the root directory. Also turn generator tools like IPCCompiler into dependencies on the files they generate, so they are built on-demand when a particular directory needs them. This all allows the root Makefile to just list directories and not care about the order, as all of the dependency tracking will figure it out.
2019-12-20Build: clean up build system, use one shared Makefilejoshua stein
Allow everything to be built from the top level directory with just 'make', cleaned with 'make clean', and installed with 'make install'. Also support these in any particular subdirectory. Specifying 'make VERBOSE=1' will print each ld/g++/etc. command as it runs. Kernel and early host tools (IPCCompiler, etc.) are built as object.host.o so that they don't conflict with other things built with the cross-compiler.
2019-11-26LookupServer: Port to socket takeoverSergey Bugaev
2019-11-26LookupServer: Port to LibCoreSergey Bugaev
2019-10-16LookupServer: Remove debug spam about /etc/hostsAndreas Kling
2019-10-16LookupServer: Cache successful DNS lookup responses for 1 minuteAndreas Kling
This reduces DNS traffic spam during web browsing. We can definitely do a lot better here, this is just a very low-hanging fruit.
2019-09-30ByteBuffer: Remove pointer() in favor of data()Andreas Kling
We had two ways to get the data inside a ByteBuffer. That was silly.
2019-09-21LibCore: Convert CFile to ObjectPtrAndreas Kling
2019-09-06AK: Rename <AK/AKString.h> to <AK/String.h>Andreas Kling
This was a workaround to be able to build on case-insensitive file systems where it might get confused about <string.h> vs <String.h>. Let's just not support building that way, so String.h can have an objectively nicer name. :^)
2019-07-24AK: Make HashMap::get(Key) return an Optional<Value>.Andreas Kling
This allows HashMap::get() to be used for value types that cannot be default constructed (e.g NonnullOwnPtr.)
2019-07-21Userspace: Deal with select() returning EINTR on a signal interruptionRobin Burchell
Add a trivial CSafeSyscall template that calls a callback until it stops returning EINTR, and use it everywhere we use select() now. Thanks to Andreas for the suggestion of using a template parameter for the syscall function to invoke.
2019-07-03AK: Rename the common integer typedefs to make it obvious what they are.Andreas Kling
These types can be picked up by including <AK/Types.h>: * u8, u16, u32, u64 (unsigned) * i8, i16, i32, i64 (signed)
2019-06-30Meta: Removed all gitignore in the source tree only keeping the root oneVAN BOSSUYT Nicolas
2019-06-20LookupServer: Use a CFile for loading /etc/hosts.Andreas Kling
This fixes an issue with the lines having extra bytes at the end due after converting from ByteBuffer to String.
2019-06-07LookupServer: use /etc/hosts even for reverse lookupsChristopher Dumas
2019-06-07LookupServer: Load hostnamesChristopher Dumas
2019-06-07LookupServer: Clang-FormatChristopher Dumas
2019-06-06LookupServer+LibC: Add support for reverse DNS lookups via gethostbyaddr().Andreas Kling
LookupServer can now take two types of requests: * L: Lookup * R: Reverse lookup The /bin/host program now does a reverse lookup if the input string is a valid IPv4 address. :^)
2019-06-02AK: Add implicit String -> StringView conversionRobin Burchell
And tidy up existing view() users.
2019-05-28Add clang-format fileRobin Burchell
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
2019-05-28LibC: Move struct timeval to sys/time.h. #POSIXAndreas Kling
2019-05-27can now tile background and made sure the IRC choose server popup still worksChristopher Dumas
2019-05-27Network stack is now configurable, and resolution is also configurable, but ↵Christopher Dumas
loading cursors causes a page-fault?
2019-05-13Fix "make clean" not deleting app binaries.Andreas Kling
2019-04-21Include Makefile.common in all other Makefiles.Andreas Kling
2019-04-20AK: Add String::copy(BufferType) helper.Andreas Kling
This will create a String from any BufferType that has data() and size().
2019-04-20Get rid of SERENITY macro since the compiler already defines __serenity__Andreas Kling
This makes it a bit easier to use AK templates out-of-tree.
2019-04-02LookupServer: Only interpret A records as 32-bit IPv4 addresses.Andreas Kling
This fixes a bug where CNAME records would be interpreted as if they were IP addresses, causing much confusion.
2019-04-02Move NetworkOrdered.h to AK/ since it's used in both kernel and userspace.Andreas Kling
2019-03-27LibC: Run constructors on process startup.Andreas Kling
Cooperate with the compiler to generate and execute the _init_array list of constructor functions on userspace program statup. This took two days to get working, my goodness. :^)
2019-03-20Rename DNSLookupServer => LookupServer.Andreas Kling