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

Unified Diff: runtime/bin/socket.h

Issue 17640008: Add reverse dns lookup as a method on InternetAddress. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | runtime/bin/socket.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.h
diff --git a/runtime/bin/socket.h b/runtime/bin/socket.h
index 0b0577363581e3afe446dc6d707d95bd2a64bf50..386f2314e2ee3c956b4e0108c4ed3dd57748d23a 100644
--- a/runtime/bin/socket.h
+++ b/runtime/bin/socket.h
@@ -150,6 +150,7 @@ class Socket {
enum SocketRequest {
kLookupRequest = 0,
kListInterfacesRequest = 1,
+ kReverseLookupRequest = 2,
};
static bool Initialize();
@@ -174,6 +175,7 @@ class Socket {
static AddressList<SocketAddress>* LookupAddress(const char* host,
int type,
OSError** os_error);
+ static const char* ReverseLookup(RawAddr addr, OSError** os_error);
// List interfaces. Returns a AddressList of InterfaceSocketAddress's.
static AddressList<InterfaceSocketAddress>* ListInterfaces(
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | runtime/bin/socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698