blob: 01eb72ec67faeee6f8c0f65f5576fa073dcf4218 (
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
// 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_
|