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

Side by Side Diff: net/curvecp/curvecp_client_socket.cc

Issue 10491007: fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to review Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/curvecp/curvecp_client_socket.h ('k') | net/ftp/ftp_network_transaction.cc » ('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) 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/base/ip_endpoint.h" 5 #include "net/base/ip_endpoint.h"
6 #include "net/base/net_errors.h" 6 #include "net/base/net_errors.h"
7 #include "net/curvecp/curvecp_client_socket.h" 7 #include "net/curvecp/curvecp_client_socket.h"
8 #include "net/curvecp/messenger.h" 8 #include "net/curvecp/messenger.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 23 matching lines...) Expand all
34 bool CurveCPClientSocket::IsConnected() const { 34 bool CurveCPClientSocket::IsConnected() const {
35 // TODO(mbelshe): return packetizer_.IsConnected(); 35 // TODO(mbelshe): return packetizer_.IsConnected();
36 return false; 36 return false;
37 } 37 }
38 38
39 bool CurveCPClientSocket::IsConnectedAndIdle() const { 39 bool CurveCPClientSocket::IsConnectedAndIdle() const {
40 // TODO(mbelshe): return packetizer_.IsConnectedAndIdle(); 40 // TODO(mbelshe): return packetizer_.IsConnectedAndIdle();
41 return false; 41 return false;
42 } 42 }
43 43
44 int CurveCPClientSocket::GetPeerAddress(AddressList* address) const { 44 int CurveCPClientSocket::GetPeerAddress(IPEndPoint* address) const {
45 IPEndPoint endpoint; 45 IPEndPoint endpoint;
46 int rv = packetizer_.GetPeerAddress(&endpoint); 46 int rv = packetizer_.GetPeerAddress(&endpoint);
47 if (rv < 0) 47 if (rv < 0)
48 return rv; 48 return rv;
49 *address = AddressList(endpoint); 49 *address = endpoint;
50 return OK; 50 return OK;
51 } 51 }
52 52
53 int CurveCPClientSocket::GetLocalAddress(IPEndPoint* address) const { 53 int CurveCPClientSocket::GetLocalAddress(IPEndPoint* address) const {
54 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
55 return ERR_FAILED; 55 return ERR_FAILED;
56 } 56 }
57 57
58 const BoundNetLog& CurveCPClientSocket::NetLog() const { 58 const BoundNetLog& CurveCPClientSocket::NetLog() const {
59 return net_log_; 59 return net_log_;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { 104 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) {
105 return true; 105 return true;
106 } 106 }
107 107
108 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { 108 bool CurveCPClientSocket::SetSendBufferSize(int32 size) {
109 return true; 109 return true;
110 } 110 }
111 111
112 } // namespace net 112 } // namespace net
OLDNEW
« no previous file with comments | « net/curvecp/curvecp_client_socket.h ('k') | net/ftp/ftp_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698