sockaddr_util_posix.h 714 B

123456789101112131415161718192021222324
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef NET_BASE_SOCKADDR_UTIL_POSIX_H_
  5. #define NET_BASE_SOCKADDR_UTIL_POSIX_H_
  6. #include <string>
  7. #include "net/base/net_export.h"
  8. namespace net {
  9. struct SockaddrStorage;
  10. // Fills |address| with |socket_path| and its length. For Android or Linux
  11. // platform, this supports abstract namespaces.
  12. NET_EXPORT bool FillUnixAddress(const std::string& socket_path,
  13. bool use_abstract_namespace,
  14. SockaddrStorage* address);
  15. } // namespace net
  16. #endif // NET_BASE_SOCKADDR_UTIL_POSIX_H_