summaryrefslogtreecommitdiff
path: root/Kernel/Net/IPv4SocketTuple.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-11 22:29:22 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-12 16:09:09 +0200
commitc92753a686a31cefde7058c388bc7eb081be28e4 (patch)
tree8be705bda78692581050addc088cef003d657224 /Kernel/Net/IPv4SocketTuple.h
parentb84444cbb3ea180d5fe6e421c66d8fade849e261 (diff)
downloadserenity-c92753a686a31cefde7058c388bc7eb081be28e4.zip
Kernel: Convert IPv4SocketTuple::to_string() to KString
Diffstat (limited to 'Kernel/Net/IPv4SocketTuple.h')
-rw-r--r--Kernel/Net/IPv4SocketTuple.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Net/IPv4SocketTuple.h b/Kernel/Net/IPv4SocketTuple.h
index e3beb927cb..a63d3aca71 100644
--- a/Kernel/Net/IPv4SocketTuple.h
+++ b/Kernel/Net/IPv4SocketTuple.h
@@ -9,6 +9,7 @@
#include <AK/HashMap.h>
#include <Kernel/DoubleBuffer.h>
#include <Kernel/KBuffer.h>
+#include <Kernel/KString.h>
#include <Kernel/Locking/Mutex.h>
#include <Kernel/Net/IPv4.h>
#include <Kernel/Net/Socket.h>
@@ -33,9 +34,9 @@ public:
return other.local_address() == m_local_address && other.local_port() == m_local_port && other.peer_address() == m_peer_address && other.peer_port() == m_peer_port;
};
- String to_string() const
+ ErrorOr<NonnullOwnPtr<KString>> to_string() const
{
- return String::formatted(
+ return KString::formatted(
"{}:{} -> {}:{}",
m_local_address,
m_local_port,