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