blob: d5c510b83fe0ffb59299cf09ca03414c6fbeafd1 [file] [log] [blame]
Jonas Oreland26246ca2017-12-14 08:56:55 +01001/*
2 * Copyright 2017 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef P2P_CLIENT_TURNPORTFACTORY_H_
12#define P2P_CLIENT_TURNPORTFACTORY_H_
13
14#include <memory>
15
16#include "p2p/client/relayportfactoryinterface.h"
17
18namespace cricket {
19
20// This is a RelayPortFactory that produces TurnPorts.
21class TurnPortFactory : public RelayPortFactoryInterface {
22 public:
23 ~TurnPortFactory() override;
24
25 std::unique_ptr<Port> Create(
26 const CreateRelayPortArgs& args,
27 rtc::AsyncPacketSocket* udp_socket) override;
28
29 std::unique_ptr<Port> Create(
30 const CreateRelayPortArgs& args,
31 int min_port,
32 int max_port) override;
33};
34
35} // namespace cricket
36
37#endif // P2P_CLIENT_TURNPORTFACTORY_H_