| 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::BindToNetwork(NetworkHandle handle) { |
| 280 ASSERT(false && "NYI"); |
| 281 return 0; |
| 282 } |
| 283 |
| 279 int MacAsyncSocket::EstimateMTU(uint16_t* mtu) { | 284 int MacAsyncSocket::EstimateMTU(uint16_t* mtu) { |
| 280 ASSERT(false && "NYI"); | 285 ASSERT(false && "NYI"); |
| 281 return -1; | 286 return -1; |
| 282 } | 287 } |
| 283 | 288 |
| 284 int MacAsyncSocket::GetError() const { | 289 int MacAsyncSocket::GetError() const { |
| 285 return error_; | 290 return error_; |
| 286 } | 291 } |
| 287 | 292 |
| 288 void MacAsyncSocket::SetError(int error) { | 293 void MacAsyncSocket::SetError(int error) { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 this_socket->current_callbacks_ &= ~kCFSocketWriteCallBack; | 473 this_socket->current_callbacks_ &= ~kCFSocketWriteCallBack; |
| 469 this_socket->SignalWriteEvent(this_socket); | 474 this_socket->SignalWriteEvent(this_socket); |
| 470 break; | 475 break; |
| 471 | 476 |
| 472 default: | 477 default: |
| 473 ASSERT(false && "Invalid callback type for socket"); | 478 ASSERT(false && "Invalid callback type for socket"); |
| 474 } | 479 } |
| 475 } | 480 } |
| 476 | 481 |
| 477 } // namespace rtc | 482 } // namespace rtc |
| OLD | NEW |