diff options
Diffstat (limited to 'net/socket/client_socket.h')
-rw-r--r-- | net/socket/client_socket.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/socket/client_socket.h b/net/socket/client_socket.h index 358716c..f57fe3f 100644 --- a/net/socket/client_socket.h +++ b/net/socket/client_socket.h @@ -12,6 +12,7 @@ namespace net { class AddressList; +class IPEndPoint; class ClientSocket : public Socket { public: @@ -53,8 +54,13 @@ class ClientSocket : public Socket { // Copies the peer address to |address| and returns a network error code. // ERR_SOCKET_NOT_CONNECTED will be returned if the socket is not connected. + // TODO(sergeyu): Use IPEndPoint instead of AddressList. virtual int GetPeerAddress(AddressList* address) const = 0; + // Copies the local address to |address| and returns a network error code. + // ERR_SOCKET_NOT_CONNECTED will be returned if the socket is not connected. + virtual int GetLocalAddress(IPEndPoint* address) const = 0; + // Gets the NetLog for this socket. virtual const BoundNetLog& NetLog() const = 0; |