Andreas Kling
d8f1a7e046
AK: Add LogStream operator<< for IPv4Address.
2019-07-08 11:43:42 +02:00
Andreas Kling
dddcedfd11
AK: Add IPv4Address::from_string(StringView).
...
This attempts to parse an IPv4Address from a string, and gives us an excuse
to try out the new Optional<T> for the return value. :^)
2019-07-08 11:38:58 +02:00
Andreas Kling
27f699ef0c
AK: Rename the common integer typedefs to make it obvious what they are.
...
These types can be picked up by including <AK/Types.h>:
* u8, u16, u32, u64 (unsigned)
* i8, i16, i32, i64 (signed)
2019-07-03 21:20:13 +02:00
Andreas Kling
d5bb98acbc
AK: Defer to Traits<T> for equality comparison in container templates.
...
This is prep work for supporting HashMap with NonnullRefPtr<T> as values.
It's currently not possible because many HashTable functions require being
able to default-construct the value type.
2019-06-29 19:14:03 +02:00
Andreas Kling
203f8e5320
AK: Add IPv4Address(NetworkOrdered<dword>) constructor.
2019-06-18 11:40:39 +02:00
Andreas Kling
d9a48b5916
AK: Move IPv4Address from Kernel/Net/ to AK/ since it's quite useful.
2019-06-18 11:28:48 +02:00