diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-29 01:59:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-29 02:21:01 +0200 |
commit | 70b2225b3d09ef5fe85f0b42c461c79d0afde47b (patch) | |
tree | ae7f6b1177f865caa5be09d03cbb30df699e38e6 /Kernel/Net/LocalSocket.h | |
parent | fa4eeca0ac3330ba6fee226b315ca06652a7ea11 (diff) | |
download | serenity-70b2225b3d09ef5fe85f0b42c461c79d0afde47b.zip |
Kernel: Store LocalSocket address as a KString internally
Just because we deal with sockaddr_un at the userspace API layer doesn't
mean we have to store an awkward C type internally. :^)
Diffstat (limited to 'Kernel/Net/LocalSocket.h')
-rw-r--r-- | Kernel/Net/LocalSocket.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h index ead6dd70e8..ce4abdba5a 100644 --- a/Kernel/Net/LocalSocket.h +++ b/Kernel/Net/LocalSocket.h @@ -69,6 +69,8 @@ private: evaluate_block_conditions(); } + KResult try_set_path(StringView); + // An open socket file on the filesystem. RefPtr<FileDescription> m_file; @@ -92,7 +94,7 @@ private: bool m_bound { false }; bool m_accept_side_fd_open { false }; - sockaddr_un m_address { 0, { 0 } }; + OwnPtr<KString> m_path; NonnullOwnPtr<DoubleBuffer> m_for_client; NonnullOwnPtr<DoubleBuffer> m_for_server; |