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