diff options
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 { |