| 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 17 matching lines...) Expand all  Loading... | 
| 28 | 28 | 
| 29 namespace cricket { | 29 namespace cricket { | 
| 30 | 30 | 
| 31 class UdpTransportChannel : public rtc::PacketTransportInterface { | 31 class UdpTransportChannel : public rtc::PacketTransportInterface { | 
| 32  public: | 32  public: | 
| 33   enum class State { INIT, CONNECTING, CONNECTED, FAILED }; | 33   enum class State { INIT, CONNECTING, CONNECTED, FAILED }; | 
| 34   explicit UdpTransportChannel(const std::string& transport_name); | 34   explicit UdpTransportChannel(const std::string& transport_name); | 
| 35   UdpTransportChannel(const std::string& transport_name, rtc::SocketServer* ss); | 35   UdpTransportChannel(const std::string& transport_name, rtc::SocketServer* ss); | 
| 36   ~UdpTransportChannel(); | 36   ~UdpTransportChannel(); | 
| 37 | 37 | 
| 38   std::string debug_name() const override { return transport_name_; } | 38   const std::string debug_name() const override { return transport_name_; } | 
| 39 | 39 | 
| 40   bool receiving() const override { | 40   bool receiving() const override { | 
| 41     // TODO(johan): Implement method and signal. | 41     // TODO(johan): Implement method and signal. | 
| 42     return true; | 42     return true; | 
| 43   } | 43   } | 
| 44 | 44 | 
| 45   bool writable() const override; | 45   bool writable() const override; | 
| 46 | 46 | 
| 47   int SendPacket(const char* data, | 47   int SendPacket(const char* data, | 
| 48                  size_t len, | 48                  size_t len, | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 87   State state_ = State::INIT; | 87   State state_ = State::INIT; | 
| 88   int send_error_ = 0; | 88   int send_error_ = 0; | 
| 89   std::unique_ptr<rtc::AsyncPacketSocket> socket_; | 89   std::unique_ptr<rtc::AsyncPacketSocket> socket_; | 
| 90   rtc::Optional<rtc::SocketAddress> local_parameters_; | 90   rtc::Optional<rtc::SocketAddress> local_parameters_; | 
| 91   rtc::Optional<rtc::SocketAddress> remote_parameters_; | 91   rtc::Optional<rtc::SocketAddress> remote_parameters_; | 
| 92   rtc::ThreadChecker network_thread_checker_; | 92   rtc::ThreadChecker network_thread_checker_; | 
| 93 }; | 93 }; | 
| 94 }  // namespace cricket | 94 }  // namespace cricket | 
| 95 | 95 | 
| 96 #endif  // WEBRTC_P2P_BASE_UDPTRANSPORTCHANNEL_H_ | 96 #endif  // WEBRTC_P2P_BASE_UDPTRANSPORTCHANNEL_H_ | 
| OLD | NEW | 
|---|