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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 resolver_->Destroy(false); | 269 resolver_->Destroy(false); |
270 resolver_ = NULL; | 270 resolver_ = NULL; |
271 } | 271 } |
272 | 272 |
273 native_socket_ = INVALID_SOCKET; // invalidates the socket | 273 native_socket_ = INVALID_SOCKET; // invalidates the socket |
274 error_ = 0; | 274 error_ = 0; |
275 state_ = CS_CLOSED; | 275 state_ = CS_CLOSED; |
276 return 0; | 276 return 0; |
277 } | 277 } |
278 | 278 |
279 int MacAsyncSocket::EstimateMTU(uint16* mtu) { | 279 int MacAsyncSocket::EstimateMTU(uint16_t* mtu) { |
280 ASSERT(false && "NYI"); | 280 ASSERT(false && "NYI"); |
281 return -1; | 281 return -1; |
282 } | 282 } |
283 | 283 |
284 int MacAsyncSocket::GetError() const { | 284 int MacAsyncSocket::GetError() const { |
285 return error_; | 285 return error_; |
286 } | 286 } |
287 | 287 |
288 void MacAsyncSocket::SetError(int error) { | 288 void MacAsyncSocket::SetError(int error) { |
289 error_ = error; | 289 error_ = error; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 this_socket->current_callbacks_ &= ~kCFSocketWriteCallBack; | 468 this_socket->current_callbacks_ &= ~kCFSocketWriteCallBack; |
469 this_socket->SignalWriteEvent(this_socket); | 469 this_socket->SignalWriteEvent(this_socket); |
470 break; | 470 break; |
471 | 471 |
472 default: | 472 default: |
473 ASSERT(false && "Invalid callback type for socket"); | 473 ASSERT(false && "Invalid callback type for socket"); |
474 } | 474 } |
475 } | 475 } |
476 | 476 |
477 } // namespace rtc | 477 } // namespace rtc |
OLD | NEW |