summaryrefslogtreecommitdiffstats
path: root/media/cast/test/utility/net_utility.h
blob: c1199be7a873f9f623c593915585ed13ca684460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2014 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.

#include "net/base/ip_endpoint.h"

namespace media {
namespace cast {
namespace test {

// Determine a unused UDP port for the in-process receiver to listen on.
// Method: Bind a UDP socket on port 0, and then check which port the
// operating system assigned to it.
net::IPEndPoint GetFreeLocalPort();

}  // namespace test
}  // namespace cast
}  // namespace media