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

Side by Side Diff: net/socket/socks_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/socks_client_socket.h ('k') | net/socket/ssl_client_socket_mac.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/socks_client_socket.h" 5 #include "net/socket/socks_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/trace_event.h" 9 #include "base/trace_event.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 << "not confirm the user ID string in the request"; 391 << "not confirm the user ID string in the request";
392 return ERR_SOCKS_CONNECTION_FAILED; 392 return ERR_SOCKS_CONNECTION_FAILED;
393 default: 393 default:
394 LOG(ERROR) << "SOCKS server sent unknown response"; 394 LOG(ERROR) << "SOCKS server sent unknown response";
395 return ERR_SOCKS_CONNECTION_FAILED; 395 return ERR_SOCKS_CONNECTION_FAILED;
396 } 396 }
397 397
398 // Note: we ignore the last 6 bytes as specified by the SOCKS protocol 398 // Note: we ignore the last 6 bytes as specified by the SOCKS protocol
399 } 399 }
400 400
401 int SOCKSClientSocket::GetPeerName(struct sockaddr* name, 401 int SOCKSClientSocket::GetPeerAddress(AddressList* address) const {
402 socklen_t* namelen) { 402 return transport_->GetPeerAddress(address);
403 return transport_->GetPeerName(name, namelen);
404 } 403 }
405 404
406 } // namespace net 405 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket.h ('k') | net/socket/ssl_client_socket_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698