Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: webrtc/base/physicalsocketserver.cc

Issue 1392153002: Get rid of deprecated SocketAddress::IsAny() method. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: REBASE Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/base/socketaddress.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 enabled_events_ = 0; 393 enabled_events_ = 0;
394 if (resolver_) { 394 if (resolver_) {
395 resolver_->Destroy(false); 395 resolver_->Destroy(false);
396 resolver_ = NULL; 396 resolver_ = NULL;
397 } 397 }
398 return err; 398 return err;
399 } 399 }
400 400
401 int EstimateMTU(uint16_t* mtu) override { 401 int EstimateMTU(uint16_t* mtu) override {
402 SocketAddress addr = GetRemoteAddress(); 402 SocketAddress addr = GetRemoteAddress();
403 if (addr.IsAny()) { 403 if (addr.IsAnyIP()) {
404 SetError(ENOTCONN); 404 SetError(ENOTCONN);
405 return -1; 405 return -1;
406 } 406 }
407 407
408 #if defined(WEBRTC_WIN) 408 #if defined(WEBRTC_WIN)
409 // Gets the interface MTU (TTL=1) for the interface used to reach |addr|. 409 // Gets the interface MTU (TTL=1) for the interface used to reach |addr|.
410 WinPing ping; 410 WinPing ping;
411 if (!ping.IsValid()) { 411 if (!ping.IsValid()) {
412 SetError(EINVAL); // can't think of a better error ID 412 SetError(EINVAL); // can't think of a better error ID
413 return -1; 413 return -1;
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 break; 1627 break;
1628 } 1628 }
1629 } 1629 }
1630 1630
1631 // Done 1631 // Done
1632 return true; 1632 return true;
1633 } 1633 }
1634 #endif // WEBRTC_WIN 1634 #endif // WEBRTC_WIN
1635 1635
1636 } // namespace rtc 1636 } // namespace rtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/socketaddress.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698