OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 typedef std::set<rtc::SocketAddress> ServerAddresses; | 117 typedef std::set<rtc::SocketAddress> ServerAddresses; |
118 | 118 |
119 // Represents a local communication mechanism that can be used to create | 119 // Represents a local communication mechanism that can be used to create |
120 // connections to similar mechanisms of the other client. Subclasses of this | 120 // connections to similar mechanisms of the other client. Subclasses of this |
121 // one add support for specific mechanisms like local UDP ports. | 121 // one add support for specific mechanisms like local UDP ports. |
122 class Port : public PortInterface, public rtc::MessageHandler, | 122 class Port : public PortInterface, public rtc::MessageHandler, |
123 public sigslot::has_slots<> { | 123 public sigslot::has_slots<> { |
124 public: | 124 public: |
125 Port(rtc::Thread* thread, | 125 Port(rtc::Thread* thread, |
| 126 const std::string& type, |
126 rtc::PacketSocketFactory* factory, | 127 rtc::PacketSocketFactory* factory, |
127 rtc::Network* network, | 128 rtc::Network* network, |
128 const rtc::IPAddress& ip, | 129 const rtc::IPAddress& ip, |
129 const std::string& username_fragment, | 130 const std::string& username_fragment, |
130 const std::string& password); | 131 const std::string& password); |
131 Port(rtc::Thread* thread, | 132 Port(rtc::Thread* thread, |
132 const std::string& type, | 133 const std::string& type, |
133 rtc::PacketSocketFactory* factory, | 134 rtc::PacketSocketFactory* factory, |
134 rtc::Network* network, | 135 rtc::Network* network, |
135 const rtc::IPAddress& ip, | 136 const rtc::IPAddress& ip, |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 const rtc::PacketOptions& options) override; | 686 const rtc::PacketOptions& options) override; |
686 int GetError() override { return error_; } | 687 int GetError() override { return error_; } |
687 | 688 |
688 private: | 689 private: |
689 int error_ = 0; | 690 int error_ = 0; |
690 }; | 691 }; |
691 | 692 |
692 } // namespace cricket | 693 } // namespace cricket |
693 | 694 |
694 #endif // WEBRTC_P2P_BASE_PORT_H_ | 695 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |