diff options
author | zhaoqin@chromium.org <zhaoqin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 00:11:42 +0000 |
---|---|---|
committer | zhaoqin@chromium.org <zhaoqin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 00:11:42 +0000 |
commit | a352869a59d48c3bd3a4a453d73c3392255275ef (patch) | |
tree | 1375d4e5900d6df89efd8780d82c5874245bef2a /net/curvecp | |
parent | dc67e1c39fc3d2373391db49465cc1011c23011d (diff) | |
download | chromium_src-a352869a59d48c3bd3a4a453d73c3392255275ef.zip chromium_src-a352869a59d48c3bd3a4a453d73c3392255275ef.tar.gz chromium_src-a352869a59d48c3bd3a4a453d73c3392255275ef.tar.bz2 |
fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* address)
R=szym@chromium.org
BUG=128383
TEST=try bot
Review URL: https://chromiumcodereview.appspot.com/10491007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/curvecp')
-rw-r--r-- | net/curvecp/curvecp_client_socket.cc | 4 | ||||
-rw-r--r-- | net/curvecp/curvecp_client_socket.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/curvecp/curvecp_client_socket.cc b/net/curvecp/curvecp_client_socket.cc index 4aaea1b..8da55b68 100644 --- a/net/curvecp/curvecp_client_socket.cc +++ b/net/curvecp/curvecp_client_socket.cc @@ -41,12 +41,12 @@ bool CurveCPClientSocket::IsConnectedAndIdle() const { return false; } -int CurveCPClientSocket::GetPeerAddress(AddressList* address) const { +int CurveCPClientSocket::GetPeerAddress(IPEndPoint* address) const { IPEndPoint endpoint; int rv = packetizer_.GetPeerAddress(&endpoint); if (rv < 0) return rv; - *address = AddressList(endpoint); + *address = endpoint; return OK; } diff --git a/net/curvecp/curvecp_client_socket.h b/net/curvecp/curvecp_client_socket.h index 3c6eea6..2db574f 100644 --- a/net/curvecp/curvecp_client_socket.h +++ b/net/curvecp/curvecp_client_socket.h @@ -30,7 +30,7 @@ class CurveCPClientSocket : public StreamSocket { virtual void Disconnect() OVERRIDE; virtual bool IsConnected() const OVERRIDE; virtual bool IsConnectedAndIdle() const OVERRIDE; - virtual int GetPeerAddress(AddressList* address) const OVERRIDE; + virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; virtual const BoundNetLog& NetLog() const OVERRIDE; virtual void SetSubresourceSpeculation() OVERRIDE; |