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

Side by Side Diff: webrtc/base/virtualsocketserver.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 | « webrtc/base/socketaddress.h ('k') | webrtc/base/win32socketserver.cc » ('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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 int VirtualSocket::EstimateMTU(uint16_t* mtu) { 379 int VirtualSocket::EstimateMTU(uint16_t* mtu) {
380 if (CS_CONNECTED != state_) 380 if (CS_CONNECTED != state_)
381 return ENOTCONN; 381 return ENOTCONN;
382 else 382 else
383 return 65536; 383 return 65536;
384 } 384 }
385 385
386 void VirtualSocket::OnMessage(Message* pmsg) { 386 void VirtualSocket::OnMessage(Message* pmsg) {
387 if (pmsg->message_id == MSG_ID_PACKET) { 387 if (pmsg->message_id == MSG_ID_PACKET) {
388 // ASSERT(!local_addr_.IsAny()); 388 // ASSERT(!local_addr_.IsAnyIP());
389 ASSERT(NULL != pmsg->pdata); 389 ASSERT(NULL != pmsg->pdata);
390 Packet* packet = static_cast<Packet*>(pmsg->pdata); 390 Packet* packet = static_cast<Packet*>(pmsg->pdata);
391 391
392 recv_buffer_.push_back(packet); 392 recv_buffer_.push_back(packet);
393 393
394 if (async_) { 394 if (async_) {
395 SignalReadEvent(this); 395 SignalReadEvent(this);
396 } 396 }
397 } else if (pmsg->message_id == MSG_ID_CONNECT) { 397 } else if (pmsg->message_id == MSG_ID_CONNECT) {
398 ASSERT(NULL != pmsg->pdata); 398 ASSERT(NULL != pmsg->pdata);
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 void VirtualSocketServer::SetDefaultRoute(const IPAddress& from_addr) { 1122 void VirtualSocketServer::SetDefaultRoute(const IPAddress& from_addr) {
1123 RTC_DCHECK(!IPIsAny(from_addr)); 1123 RTC_DCHECK(!IPIsAny(from_addr));
1124 if (from_addr.family() == AF_INET) { 1124 if (from_addr.family() == AF_INET) {
1125 default_route_v4_ = from_addr; 1125 default_route_v4_ = from_addr;
1126 } else if (from_addr.family() == AF_INET6) { 1126 } else if (from_addr.family() == AF_INET6) {
1127 default_route_v6_ = from_addr; 1127 default_route_v6_ = from_addr;
1128 } 1128 }
1129 } 1129 }
1130 1130
1131 } // namespace rtc 1131 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/socketaddress.h ('k') | webrtc/base/win32socketserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698