OLD | NEW |
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 Loading... |
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 |
OLD | NEW |