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