| 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 12 matching lines...) Expand all Loading... |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace cricket { | 25 namespace cricket { |
| 26 class Connection; | 26 class Connection; |
| 27 class IceMessage; | 27 class IceMessage; |
| 28 class StunMessage; | 28 class StunMessage; |
| 29 | 29 |
| 30 enum ProtocolType { | 30 enum ProtocolType { |
| 31 PROTO_UDP, | 31 PROTO_UDP, |
| 32 PROTO_TCP, | 32 PROTO_TCP, |
| 33 PROTO_SSLTCP, | 33 PROTO_SSLTCP, // Pseudo-TLS. |
| 34 PROTO_LAST = PROTO_SSLTCP | 34 PROTO_TLS, |
| 35 PROTO_LAST = PROTO_TLS |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 // Defines the interface for a port, which represents a local communication | 38 // Defines the interface for a port, which represents a local communication |
| 38 // mechanism that can be used to create connections to similar mechanisms of | 39 // mechanism that can be used to create connections to similar mechanisms of |
| 39 // the other client. Various types of ports will implement this interface. | 40 // the other client. Various types of ports will implement this interface. |
| 40 class PortInterface { | 41 class PortInterface { |
| 41 public: | 42 public: |
| 42 virtual ~PortInterface() {} | 43 virtual ~PortInterface() {} |
| 43 | 44 |
| 44 virtual const std::string& Type() const = 0; | 45 virtual const std::string& Type() const = 0; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 123 |
| 123 virtual std::string ToString() const = 0; | 124 virtual std::string ToString() const = 0; |
| 124 | 125 |
| 125 protected: | 126 protected: |
| 126 PortInterface() {} | 127 PortInterface() {} |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace cricket | 130 } // namespace cricket |
| 130 | 131 |
| 131 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ | 132 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ |
| OLD | NEW |