blob: aa85fc5a76515be86147985ad04023d571c89f20 [file] [log] [blame]
// Copyright (c) 2019 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 QUICHE_QUIC_PLATFORM_API_QUIC_PORT_UTILS_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_PORT_UTILS_H_
#include "net/quic/platform/impl/quic_port_utils_impl.h"
namespace quic {
// Returns a UDP port that is currently unused. Check-fails if none are
// available.
inline int QuicPickUnusedPortOrDie() {
return QuicPickUnusedPortOrDieImpl();
}
// Indicates that a specified port previously returned by
// QuicPickUnusedPortOrDie is no longer used.
inline void QuicRecyclePort(int port) {
return QuicRecyclePortImpl(port);
}
} // namespace quic
#endif // QUICHE_QUIC_PLATFORM_API_QUIC_PORT_UTILS_H_