From a352869a59d48c3bd3a4a453d73c3392255275ef Mon Sep 17 00:00:00 2001 From: "zhaoqin@chromium.org" Date: Fri, 8 Jun 2012 00:11:42 +0000 Subject: 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 --- net/curvecp/curvecp_client_socket.cc | 4 ++-- net/curvecp/curvecp_client_socket.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'net/curvecp') 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; -- cgit v1.1