summaryrefslogtreecommitdiff
path: root/chromium/net/base/sockaddr_util_posix.h
blob: a12c967a8b512a4fdb9ca9173f8432c3343fc258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_BASE_SOCKADDR_UTIL_POSIX_H_
#define NET_BASE_SOCKADDR_UTIL_POSIX_H_

#include <string>

#include "net/base/net_export.h"

namespace net {

struct SockaddrStorage;

// Fills |address| with |socket_path| and its length. For Android or Linux
// platform, this supports abstract namespaces.
NET_EXPORT bool FillUnixAddress(const std::string& socket_path,
                                bool use_abstract_namespace,
                                SockaddrStorage* address);

}  // namespace net

#endif  // NET_BASE_SOCKADDR_UTIL_POSIX_H_