chromium/net/third_party/quiche/src/quiche/quic/core/io/socket_internal.h

// 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.

// Internal socket tools shared between Windows and POSIX implementations.

#ifndef QUICHE_QUIC_CORE_IO_SOCKET_INTERNAL_H_
#define QUICHE_QUIC_CORE_IO_SOCKET_INTERNAL_H_

#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "quiche/quic/core/io/socket.h"
#include "quiche/quic/platform/api/quic_socket_address.h"
#include "quiche/common/platform/api/quiche_logging.h"

namespace quic::socket_api {

inline int ToPlatformSocketType(SocketProtocol protocol) {}

inline int ToPlatformProtocol(SocketProtocol protocol) {}

// A wrapper around QuicSocketAddress(sockaddr_storage) constructor that
// validates the supplied address.
inline absl::StatusOr<QuicSocketAddress> ValidateAndConvertAddress(
    const sockaddr_storage& addr, socklen_t addr_len) {}

inline socklen_t GetAddrlen(IpAddressFamily family) {}

}  // namespace quic::socket_api

#endif  // QUICHE_QUIC_CORE_IO_SOCKET_INTERNAL_H_