Index: net/base/stream_listen_socket.h |
=================================================================== |
--- net/base/stream_listen_socket.h (revision 150609) |
+++ net/base/stream_listen_socket.h (working copy) |
@@ -47,6 +47,8 @@ |
namespace net { |
+class IPEndPoint; |
+ |
class NET_EXPORT StreamListenSocket |
: public base::RefCountedThreadSafe<StreamListenSocket>, |
#if defined(OS_WIN) |
@@ -79,6 +81,9 @@ |
void Send(const char* bytes, int len, bool append_linefeed = false); |
void Send(const std::string& str, bool append_linefeed = false); |
+ // Copies the local address to |address|. Returns a network error code. |
+ int GetLocalAddress(IPEndPoint* address); |
+ |
static const SocketDescriptor kInvalidSocket; |
static const int kSocketError; |