diff options
Diffstat (limited to 'Kernel/Net/LocalSocket.cpp')
-rw-r--r-- | Kernel/Net/LocalSocket.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index c6cf763b2f..17ee5fc2cf 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -24,7 +24,7 @@ LocalSocket::~LocalSocket() { } -bool LocalSocket::get_address(sockaddr* address, socklen_t* address_size) +bool LocalSocket::get_local_address(sockaddr* address, socklen_t* address_size) { // FIXME: Look into what fallback behavior we should have here. if (*address_size != sizeof(sockaddr_un)) @@ -34,6 +34,11 @@ bool LocalSocket::get_address(sockaddr* address, socklen_t* address_size) return true; } +bool LocalSocket::get_peer_address(sockaddr* address, socklen_t* address_size) +{ + return get_local_address(address, address_size); +} + KResult LocalSocket::bind(const sockaddr* address, socklen_t address_size) { ASSERT(!is_connected()); |