| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2010 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 89 } |
| 90 | 90 |
| 91 void AsyncSocketAdapter::SetError(int error) { | 91 void AsyncSocketAdapter::SetError(int error) { |
| 92 return socket_->SetError(error); | 92 return socket_->SetError(error); |
| 93 } | 93 } |
| 94 | 94 |
| 95 AsyncSocket::ConnState AsyncSocketAdapter::GetState() const { | 95 AsyncSocket::ConnState AsyncSocketAdapter::GetState() const { |
| 96 return socket_->GetState(); | 96 return socket_->GetState(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 int AsyncSocketAdapter::EstimateMTU(uint16* mtu) { | 99 int AsyncSocketAdapter::EstimateMTU(uint16_t* mtu) { |
| 100 return socket_->EstimateMTU(mtu); | 100 return socket_->EstimateMTU(mtu); |
| 101 } | 101 } |
| 102 | 102 |
| 103 int AsyncSocketAdapter::GetOption(Option opt, int* value) { | 103 int AsyncSocketAdapter::GetOption(Option opt, int* value) { |
| 104 return socket_->GetOption(opt, value); | 104 return socket_->GetOption(opt, value); |
| 105 } | 105 } |
| 106 | 106 |
| 107 int AsyncSocketAdapter::SetOption(Option opt, int value) { | 107 int AsyncSocketAdapter::SetOption(Option opt, int value) { |
| 108 return socket_->SetOption(opt, value); | 108 return socket_->SetOption(opt, value); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void AsyncSocketAdapter::OnConnectEvent(AsyncSocket* socket) { | 111 void AsyncSocketAdapter::OnConnectEvent(AsyncSocket* socket) { |
| 112 SignalConnectEvent(this); | 112 SignalConnectEvent(this); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void AsyncSocketAdapter::OnReadEvent(AsyncSocket* socket) { | 115 void AsyncSocketAdapter::OnReadEvent(AsyncSocket* socket) { |
| 116 SignalReadEvent(this); | 116 SignalReadEvent(this); |
| 117 } | 117 } |
| 118 | 118 |
| 119 void AsyncSocketAdapter::OnWriteEvent(AsyncSocket* socket) { | 119 void AsyncSocketAdapter::OnWriteEvent(AsyncSocket* socket) { |
| 120 SignalWriteEvent(this); | 120 SignalWriteEvent(this); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void AsyncSocketAdapter::OnCloseEvent(AsyncSocket* socket, int err) { | 123 void AsyncSocketAdapter::OnCloseEvent(AsyncSocket* socket, int err) { |
| 124 SignalCloseEvent(this, err); | 124 SignalCloseEvent(this, err); |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace rtc | 127 } // namespace rtc |
| OLD | NEW |