OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 29 matching lines...) Loading... |
40 public: | 40 public: |
41 virtual ~PortInterface() {} | 41 virtual ~PortInterface() {} |
42 | 42 |
43 virtual const std::string& Type() const = 0; | 43 virtual const std::string& Type() const = 0; |
44 virtual rtc::Network* Network() const = 0; | 44 virtual rtc::Network* Network() const = 0; |
45 | 45 |
46 // Methods to set/get ICE role and tiebreaker values. | 46 // Methods to set/get ICE role and tiebreaker values. |
47 virtual void SetIceRole(IceRole role) = 0; | 47 virtual void SetIceRole(IceRole role) = 0; |
48 virtual IceRole GetIceRole() const = 0; | 48 virtual IceRole GetIceRole() const = 0; |
49 | 49 |
50 virtual void SetIceTiebreaker(uint64 tiebreaker) = 0; | 50 virtual void SetIceTiebreaker(uint64_t tiebreaker) = 0; |
51 virtual uint64 IceTiebreaker() const = 0; | 51 virtual uint64_t IceTiebreaker() const = 0; |
52 | 52 |
53 virtual bool SharedSocket() const = 0; | 53 virtual bool SharedSocket() const = 0; |
54 | 54 |
55 // PrepareAddress will attempt to get an address for this port that other | 55 // PrepareAddress will attempt to get an address for this port that other |
56 // clients can send to. It may take some time before the address is ready. | 56 // clients can send to. It may take some time before the address is ready. |
57 // Once it is ready, we will send SignalAddressReady. If errors are | 57 // Once it is ready, we will send SignalAddressReady. If errors are |
58 // preventing the port from getting an address, it may send | 58 // preventing the port from getting an address, it may send |
59 // SignalAddressError. | 59 // SignalAddressError. |
60 virtual void PrepareAddress() = 0; | 60 virtual void PrepareAddress() = 0; |
61 | 61 |
(...skipping 52 matching lines...) Loading... |
114 | 114 |
115 virtual std::string ToString() const = 0; | 115 virtual std::string ToString() const = 0; |
116 | 116 |
117 protected: | 117 protected: |
118 PortInterface() {} | 118 PortInterface() {} |
119 }; | 119 }; |
120 | 120 |
121 } // namespace cricket | 121 } // namespace cricket |
122 | 122 |
123 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ | 123 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ |
OLD | NEW |