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

Unified Diff: net/socket/stream_listen_socket.h

Issue 181063006: Gets the peer address (if available) in server requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed proto, other review fixes Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/stream_listen_socket.h
diff --git a/net/socket/stream_listen_socket.h b/net/socket/stream_listen_socket.h
index 3c9b984ed76c5ff50f057ce8d61721f483e1dc46..90b54500ace17f2f28631f3fa8449e644564f298 100644
--- a/net/socket/stream_listen_socket.h
+++ b/net/socket/stream_listen_socket.h
@@ -73,6 +73,8 @@ class NET_EXPORT StreamListenSocket
// Copies the local address to |address|. Returns a network error code.
int GetLocalAddress(IPEndPoint* address);
+ // Copies the peer address to |address|. Returns a network error code.
+ int GetPeerAddress(IPEndPoint* address);
static const int kSocketError;

Powered by Google App Engine
This is Rietveld 408576698