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

Side by Side Diff: net/socket/socks5_client_socket.cc

Issue 10491007: fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to review Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/socks5_client_socket.h ('k') | net/socket/socks_client_socket.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/socks5_client_socket.h" 5 #include "net/socket/socks5_client_socket.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 completed_handshake_ = true; 496 completed_handshake_ = true;
497 buffer_.clear(); 497 buffer_.clear();
498 next_state_ = STATE_NONE; 498 next_state_ = STATE_NONE;
499 return OK; 499 return OK;
500 } 500 }
501 501
502 next_state_ = STATE_HANDSHAKE_READ; 502 next_state_ = STATE_HANDSHAKE_READ;
503 return OK; 503 return OK;
504 } 504 }
505 505
506 int SOCKS5ClientSocket::GetPeerAddress(AddressList* address) const { 506 int SOCKS5ClientSocket::GetPeerAddress(IPEndPoint* address) const {
507 return transport_->socket()->GetPeerAddress(address); 507 return transport_->socket()->GetPeerAddress(address);
508 } 508 }
509 509
510 int SOCKS5ClientSocket::GetLocalAddress(IPEndPoint* address) const { 510 int SOCKS5ClientSocket::GetLocalAddress(IPEndPoint* address) const {
511 return transport_->socket()->GetLocalAddress(address); 511 return transport_->socket()->GetLocalAddress(address);
512 } 512 }
513 513
514 } // namespace net 514 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socks5_client_socket.h ('k') | net/socket/socks_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698