diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-19 12:43:16 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-19 12:43:16 +0100 |
commit | 1a516cf3c0abadcb0086d9fcdbc6f86550b2b336 (patch) | |
tree | b4d5ea24a494fa9ca4777feffb3ec10b960de004 /src/net/AllocatedSocketAddress.cxx | |
parent | 5c25499c5e61582f9fbb19e219e951ab13ddb4cd (diff) |
net/AllocatedSocketAddress: add method GetLocalRaw()
Diffstat (limited to 'src/net/AllocatedSocketAddress.cxx')
-rw-r--r-- | src/net/AllocatedSocketAddress.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/net/AllocatedSocketAddress.cxx b/src/net/AllocatedSocketAddress.cxx index f3632ca3c..02cbb67d7 100644 --- a/src/net/AllocatedSocketAddress.cxx +++ b/src/net/AllocatedSocketAddress.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2017 Max Kellermann <max.kellermann@gmail.com> + * Copyright 2012-2019 Max Kellermann <max.kellermann@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,6 +29,7 @@ #include "config.h" #include "AllocatedSocketAddress.hxx" +#include "util/StringView.hxx" #include <string.h> @@ -70,6 +71,12 @@ AllocatedSocketAddress::SetSize(size_type new_size) noexcept #ifdef HAVE_UN +StringView +AllocatedSocketAddress::GetLocalRaw() const noexcept +{ + return SocketAddress(*this).GetLocalRaw(); +} + void AllocatedSocketAddress::SetLocal(const char *path) noexcept { |