| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ~RelayPort() override; | 49 ~RelayPort() override; |
| 50 | 50 |
| 51 void AddServerAddress(const ProtocolAddress& addr); | 51 void AddServerAddress(const ProtocolAddress& addr); |
| 52 void AddExternalAddress(const ProtocolAddress& addr); | 52 void AddExternalAddress(const ProtocolAddress& addr); |
| 53 | 53 |
| 54 const std::vector<OptionValue>& options() const { return options_; } | 54 const std::vector<OptionValue>& options() const { return options_; } |
| 55 bool HasMagicCookie(const char* data, size_t size); | 55 bool HasMagicCookie(const char* data, size_t size); |
| 56 | 56 |
| 57 void PrepareAddress() override; | 57 void PrepareAddress() override; |
| 58 Connection* CreateConnection(const Candidate& address, | 58 Connection* CreateConnection(const Candidate& address, |
| 59 CandidateOrigin origin) override; | 59 CandidateOrigin origin, |
| 60 const IceConfig& config) override; |
| 60 int SetOption(rtc::Socket::Option opt, int value) override; | 61 int SetOption(rtc::Socket::Option opt, int value) override; |
| 61 int GetOption(rtc::Socket::Option opt, int* value) override; | 62 int GetOption(rtc::Socket::Option opt, int* value) override; |
| 62 int GetError() override; | 63 int GetError() override; |
| 63 bool SupportsProtocol(const std::string& protocol) const override { | 64 bool SupportsProtocol(const std::string& protocol) const override { |
| 64 // Relay port may create both TCP and UDP connections. | 65 // Relay port may create both TCP and UDP connections. |
| 65 return true; | 66 return true; |
| 66 } | 67 } |
| 67 | 68 |
| 68 const ProtocolAddress * ServerAddress(size_t index) const; | 69 const ProtocolAddress * ServerAddress(size_t index) const; |
| 69 bool IsReady() { return ready_; } | 70 bool IsReady() { return ready_; } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 std::vector<ProtocolAddress> external_addr_; | 110 std::vector<ProtocolAddress> external_addr_; |
| 110 bool ready_; | 111 bool ready_; |
| 111 std::vector<RelayEntry*> entries_; | 112 std::vector<RelayEntry*> entries_; |
| 112 std::vector<OptionValue> options_; | 113 std::vector<OptionValue> options_; |
| 113 int error_; | 114 int error_; |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 } // namespace cricket | 117 } // namespace cricket |
| 117 | 118 |
| 118 #endif // WEBRTC_P2P_BASE_RELAYPORT_H_ | 119 #endif // WEBRTC_P2P_BASE_RELAYPORT_H_ |
| OLD | NEW |