| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 13 matching lines...) Expand all Loading... |
| 24 namespace rtc { | 24 namespace rtc { |
| 25 struct PacketOptions; | 25 struct PacketOptions; |
| 26 struct PacketTime; | 26 struct PacketTime; |
| 27 struct SentPacket; | 27 struct SentPacket; |
| 28 | 28 |
| 29 class PacketTransportInterface : public sigslot::has_slots<> { | 29 class PacketTransportInterface : public sigslot::has_slots<> { |
| 30 public: | 30 public: |
| 31 virtual ~PacketTransportInterface() {} | 31 virtual ~PacketTransportInterface() {} |
| 32 | 32 |
| 33 // Identify the object for logging and debug purpose. | 33 // Identify the object for logging and debug purpose. |
| 34 virtual std::string debug_name() const = 0; | 34 virtual const std::string debug_name() const = 0; |
| 35 | 35 |
| 36 // The transport has been established. | 36 // The transport has been established. |
| 37 virtual bool writable() const = 0; | 37 virtual bool writable() const = 0; |
| 38 | 38 |
| 39 // The transport has received a packet in the last X milliseconds, here X is | 39 // The transport has received a packet in the last X milliseconds, here X is |
| 40 // configured by each implementation. | 40 // configured by each implementation. |
| 41 virtual bool receiving() const = 0; | 41 virtual bool receiving() const = 0; |
| 42 | 42 |
| 43 // Attempts to send the given packet. | 43 // Attempts to send the given packet. |
| 44 // The return value is < 0 on failure. The return value in failure case is not | 44 // The return value is < 0 on failure. The return value in failure case is not |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 SignalReadPacket; | 86 SignalReadPacket; |
| 87 | 87 |
| 88 // Signalled each time a packet is sent on this channel. | 88 // Signalled each time a packet is sent on this channel. |
| 89 sigslot::signal2<PacketTransportInterface*, const rtc::SentPacket&> | 89 sigslot::signal2<PacketTransportInterface*, const rtc::SentPacket&> |
| 90 SignalSentPacket; | 90 SignalSentPacket; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace rtc | 93 } // namespace rtc |
| 94 | 94 |
| 95 #endif // WEBRTC_P2P_BASE_PACKETTRANSPORTINTERFACE_H_ | 95 #endif // WEBRTC_P2P_BASE_PACKETTRANSPORTINTERFACE_H_ |
| OLD | NEW |