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

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

Issue 598071: Really connect to the same server in FTP network transaction. (Closed)
Patch Set: updates Created 10 years, 10 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 | « 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 completed_handshake_ = true; 442 completed_handshake_ = true;
443 buffer_.clear(); 443 buffer_.clear();
444 next_state_ = STATE_NONE; 444 next_state_ = STATE_NONE;
445 return OK; 445 return OK;
446 } 446 }
447 447
448 next_state_ = STATE_HANDSHAKE_READ; 448 next_state_ = STATE_HANDSHAKE_READ;
449 return OK; 449 return OK;
450 } 450 }
451 451
452 int SOCKS5ClientSocket::GetPeerName(struct sockaddr* name, 452 int SOCKS5ClientSocket::GetPeerAddress(AddressList* address) const {
453 socklen_t* namelen) { 453 return transport_->GetPeerAddress(address);
454 return transport_->GetPeerName(name, namelen);
455 } 454 }
456 455
457 } // namespace net 456 } // 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